apache / apache/iotdb

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

未关闭
#4,475 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
6.4k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
115

描述

**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

贡献指南

打开贡献指南

调研方向

Issue 中没有指定源文件或测试。首先定位现有的多时间序列查询语法及其 parser 或执行测试,然后将提议的 UNION ALL 示例与当前行为进行比较;完成的标准是该示例返回一个包含所请求设备特定字段和时间戳的结果集。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, sql
领域
database
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。