apache / apache/iotdb

[Bug] last查询乱序

Open
#11,212 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

### Search before asking

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

### Version

1.0.1

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

![image](https://github.com/apache/iotdb/assets/51083842/963fc630-c1d6-4bd3-b95d-fa0224211f72)
直接进行last查询。

### What did you expect to see?

希望last查询能按功能描述的一样正常运行

### What did you see instead?

last查询乱序,如果不使用last查询,而是select ...order by time desc 数据的时序又是正常的

### Anything else?

_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 last query on IoTDB 1.0.1 and compare its result order with SELECT ... ORDER BY time DESC. Trace the last-query execution path to determine where ordering diverges from the documented behavior. Done means last results are returned in the expected order and the regression is covered by a test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.