apache / apache/iotdb

[Bug] timestamp_precision=us/ns使用group by滑动时间统计错误

Open
#12,128 2 comments 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

0.13.3

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

timestamp_precision=us/ns使用group by滑动时间统计错误

使用SQL为:SELECT count(successTimes) as successTimes FROM root.bridata.dss.t_model.bridatafusionv2.NODE_DATA.1764953506462040064.a0fqzicu7b486019276 GROUP BY ([2024-03-05 22:00:00, 2024-03-06 11:00:00),1h)

![image](https://github.com/apache/iotdb/assets/7069880/34aba6c5-fee3-4f30-bc1d-e8e7424bf62b)

![image](https://github.com/apache/iotdb/assets/7069880/bff4bcdc-f5a3-4433-adcd-499f3c97ef89)

### What did you expect to see?

正确统计

### What did you see instead?

无法正确统计

### Anything else?

_No response_

### Are you willing to submit a PR?

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported GROUP BY sliding-window query on IoTDB 0.13.3 with timestamp_precision set to us and ns. Compare the returned counts with the expected one-hour windows over the stated time range; done means both precisions produce correct statistics.

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
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.