Skip to content

Commit

Permalink
Fix typo in cagg error message
Browse files Browse the repository at this point in the history
  • Loading branch information
svenklemm committed Jun 21, 2024
1 parent e2089f7 commit c74e10c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tsl/src/continuous_aggs/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down
2 changes: 1 addition & 1 deletion tsl/test/expected/cagg_utils.out
Original file line number Diff line number Diff line change
Expand Up @@ -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 $$);
Expand Down

0 comments on commit c74e10c

Please sign in to comment.