apache / apache/iotdb

[Feature request] 查询时间区间较大范围的数据, 期望可以按每分钟(5分钟)一条数据返回

Open
#9,799 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Motivation

版本: 1.0.0
业务场景:

1. 查询的时段类型有四种: 一小时, 一天, 一周, 一个月
2. 设备的上报频率为1秒钟一次,一天就是86400条数据
3. 当我根据时间区间查询一周或一个月的数据, 总是会抛出内存溢出异常

sql
`select batteryVoltage, odometer from root.389d79c1a12147deaafca6b8f6b3665c.e1d1896803a34422935517b108d9bce3.03625aa0be1443cdb5bf8af89ebd69fe
where time >= 2023-02-17T02:00:00 and time < 2023-02-24T02:00:00`

### Solution

_No response_

### Alternatives

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the SQL query in the issue against the reported one-second device data and inspect how IoTDB handles week- and month-long result sets. Determine the intended minute or five-minute grouping semantics and verify that the query avoids the reported out-of-memory failure while returning the expected reduced data volume.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.