apache / apache/iotdb

[Bug] iotdb查询问题

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

描述

### Search before asking

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

### Version

iotdb1.0.0

### Describe the bug and provide the minimal reproduce step

我们在使用iotdb的select做查询时,有时候查询结果与我们实际的预期结果不一致,但是在查询sql中加上order by time desc或者order by timeseries desc查询到的结果就符合我们的查询结果
![image](https://user-images.githubusercontent.com/20983434/225574340-346959a1-c14d-4de6-b4be-ace1695713ee.png)
![image](https://user-images.githubusercontent.com/20983434/225574454-072acec1-ccea-4a4e-8b0f-9eb8c3a6b466.png)

### What did you expect to see?

期望可以获得正确的查询结果,或者加上order by 是如何获取到正确结果的,是因为我们查询方式不正确造成的吗?

### What did you see instead?

这种查询结果我们目前无法理解

### Anything else?

_No response_

### Are you willing to submit a PR?

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

贡献指南

打开贡献指南

调研方向

首先,在 IoTDB 1.0.0 上使用 SELECT 查询以及使用 `order by time desc` 和 `order by timeseries desc` 的变体重现报告的行为,并将结果与随附示例进行比较。确定不同结果是排序问题还是无效的查询预期;当该行为得到解释,并且在行为不正确的情况下由回归测试覆盖时,即视为完成。

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

评估

技术栈
java, sql
领域
databases
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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