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
Prevent usage of time_bucket_ng in CAgg definition
The function timescaledb_experimental.time_bucket_ng() has been
deprecated for two years. This PR removes it from the list of bucketing
functions supported in a CAgg. Existing CAggs using this function will
still be supported; however, no new CAggs using this function can be
created.
Copy file name to clipboardExpand all lines: tsl/test/expected/cagg_usage-13.out
+1-1
Original file line number
Diff line number
Diff line change
@@ -473,7 +473,7 @@ CREATE MATERIALIZED VIEW cagg3 WITH (timescaledb.continuous,timescaledb.material
473
473
ERROR: cannot create continuous aggregate with variable-width bucket using offset or origin.
474
474
-- offset - not supported due to variable size
475
475
CREATE MATERIALIZED VIEW cagg4 WITH (timescaledb.continuous,timescaledb.materialized_only=true) AS SELECT time_bucket('1 month', time, 'PST8PDT', "offset":= INTERVAL '15 day') FROM metrics GROUP BY 1;
476
-
ERROR: continuous aggregate view must include a valid time bucket function
476
+
ERROR: cannot create continuous aggregate with variable-width bucket using offset or origin.
Copy file name to clipboardExpand all lines: tsl/test/expected/cagg_usage-14.out
+1-1
Original file line number
Diff line number
Diff line change
@@ -473,7 +473,7 @@ CREATE MATERIALIZED VIEW cagg3 WITH (timescaledb.continuous,timescaledb.material
473
473
ERROR: cannot create continuous aggregate with variable-width bucket using offset or origin.
474
474
-- offset - not supported due to variable size
475
475
CREATE MATERIALIZED VIEW cagg4 WITH (timescaledb.continuous,timescaledb.materialized_only=true) AS SELECT time_bucket('1 month', time, 'PST8PDT', "offset":= INTERVAL '15 day') FROM metrics GROUP BY 1;
476
-
ERROR: continuous aggregate view must include a valid time bucket function
476
+
ERROR: cannot create continuous aggregate with variable-width bucket using offset or origin.
Copy file name to clipboardExpand all lines: tsl/test/expected/cagg_usage-15.out
+1-1
Original file line number
Diff line number
Diff line change
@@ -473,7 +473,7 @@ CREATE MATERIALIZED VIEW cagg3 WITH (timescaledb.continuous,timescaledb.material
473
473
ERROR: cannot create continuous aggregate with variable-width bucket using offset or origin.
474
474
-- offset - not supported due to variable size
475
475
CREATE MATERIALIZED VIEW cagg4 WITH (timescaledb.continuous,timescaledb.materialized_only=true) AS SELECT time_bucket('1 month', time, 'PST8PDT', "offset":= INTERVAL '15 day') FROM metrics GROUP BY 1;
476
-
ERROR: continuous aggregate view must include a valid time bucket function
476
+
ERROR: cannot create continuous aggregate with variable-width bucket using offset or origin.
Copy file name to clipboardExpand all lines: tsl/test/expected/cagg_usage-16.out
+1-1
Original file line number
Diff line number
Diff line change
@@ -473,7 +473,7 @@ CREATE MATERIALIZED VIEW cagg3 WITH (timescaledb.continuous,timescaledb.material
473
473
ERROR: cannot create continuous aggregate with variable-width bucket using offset or origin.
474
474
-- offset - not supported due to variable size
475
475
CREATE MATERIALIZED VIEW cagg4 WITH (timescaledb.continuous,timescaledb.materialized_only=true) AS SELECT time_bucket('1 month', time, 'PST8PDT', "offset":= INTERVAL '15 day') FROM metrics GROUP BY 1;
476
-
ERROR: continuous aggregate view must include a valid time bucket function
476
+
ERROR: cannot create continuous aggregate with variable-width bucket using offset or origin.
0 commit comments