You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We dont want continuous aggregate refresh to fail because of
decompression limit so disable limit for the refresh job.
(cherry picked from commit ff85c5e)
Copy file name to clipboardExpand all lines: tsl/test/expected/cagg_refresh.out
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -600,3 +600,25 @@ EXECUTE FUNCTION refresh_cagg_trigger_fun();
600
600
INSERT INTO refresh_cagg_trigger_table VALUES(1);
601
601
psql:include/cagg_refresh_common.sql:407: ERROR: refresh_continuous_aggregate() cannot be executed from a function
602
602
\set ON_ERROR_STOP 1
603
+
-- check that cagg refresh is not blocked by decompression limit
604
+
CREATE TABLE conditions_decompress_limit (time timestamptz NOT NULL, device text, temp float) WITH (tsdb.hypertable, tsdb.partition_column='time');
605
+
INSERT INTO conditions_decompress_limit SELECT '2020-01-01','d' || i::text, 1.0 FROM generate_series(1,100) g(i);
606
+
CREATE MATERIALIZED VIEW daily_temp_decompress_limit WITH (tsdb.continuous) AS SELECT time_bucket('1 day', time) AS day, device, avg(temp) AS avg_temp FROM conditions_decompress_limit GROUP BY 1,2 WITH NO DATA;
607
+
ALTER MATERIALIZED VIEW daily_temp_decompress_limit SET (tsdb.columnstore,tsdb.segmentby = 'device');
608
+
psql:include/cagg_refresh_common.sql:415: NOTICE: defaulting compress_orderby to day
Copy file name to clipboardExpand all lines: tsl/test/expected/cagg_refresh_using_merge.out
+35-13Lines changed: 35 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -601,6 +601,28 @@ EXECUTE FUNCTION refresh_cagg_trigger_fun();
601
601
INSERT INTO refresh_cagg_trigger_table VALUES(1);
602
602
psql:include/cagg_refresh_common.sql:407: ERROR: refresh_continuous_aggregate() cannot be executed from a function
603
603
\set ON_ERROR_STOP 1
604
+
-- check that cagg refresh is not blocked by decompression limit
605
+
CREATE TABLE conditions_decompress_limit (time timestamptz NOT NULL, device text, temp float) WITH (tsdb.hypertable, tsdb.partition_column='time');
606
+
INSERT INTO conditions_decompress_limit SELECT '2020-01-01','d' || i::text, 1.0 FROM generate_series(1,100) g(i);
607
+
CREATE MATERIALIZED VIEW daily_temp_decompress_limit WITH (tsdb.continuous) AS SELECT time_bucket('1 day', time) AS day, device, avg(temp) AS avg_temp FROM conditions_decompress_limit GROUP BY 1,2 WITH NO DATA;
608
+
ALTER MATERIALIZED VIEW daily_temp_decompress_limit SET (tsdb.columnstore,tsdb.segmentby = 'device');
609
+
psql:include/cagg_refresh_common.sql:415: NOTICE: defaulting compress_orderby to day
Copy file name to clipboardExpand all lines: tsl/test/sql/include/cagg_refresh_common.sql
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -407,3 +407,15 @@ EXECUTE FUNCTION refresh_cagg_trigger_fun();
407
407
INSERT INTO refresh_cagg_trigger_table VALUES(1);
408
408
409
409
\set ON_ERROR_STOP 1
410
+
411
+
-- check that cagg refresh is not blocked by decompression limit
412
+
CREATETABLEconditions_decompress_limit (timetimestamptzNOT NULL, device text, temp float) WITH (tsdb.hypertable, tsdb.partition_column='time');
413
+
INSERT INTO conditions_decompress_limit SELECT'2020-01-01','d'|| i::text, 1.0FROM generate_series(1,100) g(i);
414
+
CREATE MATERIALIZED VIEW daily_temp_decompress_limit WITH (tsdb.continuous) ASSELECT time_bucket('1 day', time) AS day, device, avg(temp) AS avg_temp FROM conditions_decompress_limit GROUP BY1,2 WITH NO DATA;
415
+
ALTER MATERIALIZED VIEW daily_temp_decompress_limit SET (tsdb.columnstore,tsdb.segmentby='device');
0 commit comments