diff --git a/tsl/src/continuous_aggs/common.c b/tsl/src/continuous_aggs/common.c index 1099c1b0eb9..f55c8c5a2b5 100644 --- a/tsl/src/continuous_aggs/common.c +++ b/tsl/src/continuous_aggs/common.c @@ -671,8 +671,8 @@ cagg_validate_query(const Query *query, const bool finalized, const char *cagg_s { ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("only two tables with one hypertable and one normal table" - "are allowed in continuous aggregate view"))); + errmsg("only two tables with one hypertable and one normal table " + "are allowed in continuous aggregate view"))); } /* Extra checks for joins in Caggs. */ if (list_length(fromList) == CONTINUOUS_AGG_MAX_JOIN_RELATIONS || diff --git a/tsl/test/expected/cagg_utils.out b/tsl/test/expected/cagg_utils.out index 6e9f7f19f6f..6b731f59220 100644 --- a/tsl/test/expected/cagg_utils.out +++ b/tsl/test/expected/cagg_utils.out @@ -166,7 +166,7 @@ SELECT * FROM cagg_validate_query($$ SELECT time_bucket('1 hour', a."time"), cou SELECT * FROM cagg_validate_query($$ SELECT time_bucket('1 hour', "time"), count(*) FROM metrics, devices a, devices b GROUP BY 1 $$); is_valid | error_level | error_code | error_message | error_detail | error_hint ----------+-------------+------------+---------------------------------------------------------------------------------------------------+--------------+------------ - f | ERROR | 0A000 | only two tables with one hypertable and one normal tableare allowed in continuous aggregate view | | + f | ERROR | 0A000 | only two tables with one hypertable and one normal table are allowed in continuous aggregate view | | (1 row) SELECT * FROM cagg_validate_query($$ SELECT time_bucket('1 hour', "time"), device_id, count(*) FROM metrics LEFT JOIN devices ON id = device_id GROUP BY 1, 2 $$);