apache / apache/iotdb

需求:union all 多时间序列查询

Open
#4,475 1 comment 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

**Is your feature request related to a problem? Please describe.**
比如:
我现在要查一个大的网关设备,下面连着两个子设备,子设备下面有很多测点(1.风速、1.温度、2.湿度),这两个设备分别上传的数据时间不一样,我想查出的他们的历史的数据,然后带有时间,我查就会出现这样的情况,就像这样
![afb61d1113831bbd81088f5544735a7](https://user-images.githubusercontent.com/31236828/143538097-14f513b1-718c-4088-9ec4-31fcafa16547.png)
![4cd19c19b2d2773e7b4e2f06620f5c5](https://user-images.githubusercontent.com/31236828/143538108-97f8e396-8b90-423d-ba80-f1148380286d.png)
![e7cfc0f382fc85bb471e7f4a348fa58](https://user-images.githubusercontent.com/31236828/143538115-e7668cb5-6b8e-423a-845b-f516f4d4daad.png)

**Describe the solution you'd like**
我希望能够通过类似mysql 中 union all 多表查询,返回一个结果集,比如我可以这样查
select * from root.device.1 slimit 2 align by device union all select * from root.device.2 slimit 1 align by device

**Describe alternatives you've considered**
然后返回结果集可以是这样子的:
root.device.1 -> time,wind_speed,temperature
root.device.2 -> time,humidity

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named in the issue. Start by locating the existing multi-time-series query syntax and its parser or execution tests, then compare the proposed UNION ALL example with current behavior; done means the example returns one result set containing the requested device-specific fields and timestamps.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.