Comments (7)
Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!
from iotdb.
I'm looking for the same, i think it depends on the IoTDB version that you have
V0.13.x: https://iotdb.apache.org/UserGuide/V0.13.x/Process-Data/Continuous-Query.html
V13.0.x: nothing found
My main concern is this:
Note that the current distributed version of IoTDB does not support continuous queries. Please stay tuned.
I have IoTDB 1.13.x and trying to create a CQ it fails every time with the provided example:
Error occurred while parsing SQL to physical plan: line 5:2 no viable alternative at input 'SELECT max_value(temperature) \n INTO temperature_max \n FROM'
Even with a real path:
IoTDB> CREATE CONTINUOUS QUERY cq1
> BEGIN
> SELECT max_value(uptime)
> INTO test
> FROM root.Switch.**
> GROUP BY time(10s)
> END
Msg: 700: Error occurred while parsing SQL to physical plan: line 5:2 no viable alternative at input 'SELECT max_value(uptime) \n INTO test \n FROM'
@snimavat Did you find anything?
@HTHou @CritasWang Can someone help us with this question? i mean, does CQ are at least supported in version 1.13.x? ( or any other way to create a downsample similtar to InfluxDB: Reference: http://wiki.webperfect.ch/index.php?title=InfluxDB_2.x:_Task:_Downsampling )
from iotdb.
from iotdb.
Thanks!!!
i'm working on a python script to create every CQS that are needed to downsample an entire db and with only two database i got a lot of CQS (it's pretty messy and hard to debug in case of any kind of issue)
as i pointed out in the previus message with influxDB we can downsample an entire db with a pretty easy query:
option task = {name: "_30d", every: 5m}
data =
from(bucket: "foo")
|> range(start: -task.every)
|> filter(fn: (r) => r._measurement =~ /.*/)
data
|> aggregateWindow(fn: mean, every: 5m)
|> filter(fn: (r) => exists r._value)
|> to(bucket: "foo_30d", org: "bar")
@CritasWang there are any ways to create a full db downsample without the need to create a cqs for every metrics in the db?
Thanks in advance
from iotdb.
If there are many such CQ, then I feel like you can use pipe to handle them
https://github.com/apache/iotdb/blob/master/example/pipe-count-point-processor/src/main/java/org/apache/iotdb/CountPointProcessor.java
from iotdb.
@CritasWang i found this in the documentation: https://iotdb.apache.org/UserGuide/V1.2.x/User-Manual/Data-Sync.html
but i'm note sure how to create the pipe that downsample the entire DB
it seems that the pipe is use to transfer data between two IoTDB Instances.
my schema is something like this:
foo_db <- 7 day retention policy
I want to create 2 new db with the pipe to get
- foo30d_db <- 30 day retention policy (20m aggregation data)
- foohystory_db <- no retention policy (1h aggregation data)
Can you please give me an example pipe that downsample the foo_db (and send the data to the same IoTDB instance)?
thanks in advice
from iotdb.
Sink allows data to be written back to its own IOTDB instance
from iotdb.
Related Issues (20)
- grafana add new data sorce error HOT 2
- [Bug] 在Rocky Linux无法启动 HOT 1
- 突然停电后,iotdb重启失败 HOT 2
- [Bug] NPE when deleting timeseries via Java API HOT 3
- iotdb支持ambari组件 HOT 3
- For Hdfs Integrating with IoTDB no support document avilable for IoTdb higher version above 0.13.x HOT 1
- 昨天运行了半天,早上出现的问题ERROR o.a.t.s.TThreadPoolServer$WorkerProcess:258 HOT 4
- [Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB HOT 13
- 分组查询时,时间跨度过大会导致服务器崩溃 HOT 1
- [Bug] 写UDAF的时候,如果不加group by level就能正常接收参数,如果加了group by level就报301 HOT 1
- [Feature request] 支持单机版简化部署 HOT 1
- WARN o.a.ratis.util.LogUtils:124 - 3: Failed requestVote 1->3#0
- [Bug] Time-Zone problems in MonthIntervalFillFilterTest HOT 1
- [Bug] Time-Zone problems in TimeRangeIteratorTest
- [Bug] the 'ALTER timeseries {ts} DROP {tag1 .. tagN}' clause is confusing (no tags/attributes discrimination) HOT 1
- mybaits mapper.xml insert SQLException:Does not support prepareStatement HOT 2
- [Bug] 为什么我的压缩比很低,而且越来越低,现在差不多2.5 HOT 8
- Where are the remaining two storage strategies? HOT 1
- [Feature request] Byte array data type HOT 1
- [Feature request] Allow Pandas >= 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iotdb.