I am getting error using GROUP BY RANGE in GridDB sql. I am referring to the example mention in the doc https://griddb.org/docs-en/manuals/GridDB_SQL_Reference.html#group-by-range
name: trend_data1
| ts | value |
|---|---|
| 2023-01-01T00:00:00 | 10 |
| 2023-01-01T00:00:10 | 30 |
| 2023-01-01T00:00:20 | 30 |
| 2023-01-01T00:00:30 | 50 |
| 2023-01-01T00:00:40 | 50 |
| 2023-01-01T00:00:50 | 70 |
SELECT ts, avg(value)
FROM trend_data1
WHERE ts BETWEEN TIMESTAMP('2023-01-01T00:00:00Z')
AND TIMESTAMP('2023-01-01T00:01:00Z')
GROUP BY RANGE ts EVERY (20,SECOND)
error: The invalid query was specified
Table definition:
CREATE TABLE trend_data1 (
ts TIMESTAMP,
value DOUBLE
)
What is the wrong with the query as I am using the same query as provided in the document.
tscolumns type)