[Bug] 2.0.5版本当数据删除之后再使用last_by函数查询会有数据返回,且这条数据为null
- 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
2.0.5 window版本
### Describe the bug and provide the minimal reproduce step
表中对应的标签没有数据的情况下last_by查询是没有数据
给这个对应的标签添加一条数据
**问题出现**:删除这条数据之后,使用last_by 方法查询时会返回一条数据,这个数据全部返回的字段为空
### What did you expect to see?
数据删除之后使用last_by查询应该不返回任何数据
### What did you see instead?
数据删除之后使用last_by查询应该返回一条数据,而且这条数据全部字段都返回了null
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
Contributor guide
Research direction
Start by reproducing the reported behavior in IoTDB 2.0.5 on Windows: insert data for the relevant tag, delete it, and query with last_by. Compare the result with the expected empty result, then trace the last_by query path and add coverage for the deleted-data case. Done means last_by returns no row after the data is deleted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100