'An error when trying to create continuous query on Apache IoTDB Database

Describe the bug

Today I wanted to create a continuous query, so I gave it a run. Already when running the first query I got from the documentation I got an error - and whatever I wrote, I got the same error:

Msg: 401: Error occurred while parsing SQL to physical plan: line 1:7 no viable alternative at input 'CREATE CONTINUOUS' 

To Reproduce

Steps to reproduce the behavior: Open a client to the iot-db Run a query like CREATE CONTINUOUS QUERY test BEGIN SELECT foo INTO test FROM root GROUP BY time(10s) END See error

Expected behavior

Create a continuous query of some kind ... Desktop (please complete the following information): OS: Linux Browser n/a Version 0.12.2

Additional context

Here's a link to the documentation: https://iotdb.apache.org/UserGuide/Master/Advanced-Features/Continuous-Query.html



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source