IoTDB(0.12.5),计算某时间段数据的平均值,昨天计算结果和今天的计算结果不一样
Open
- Dominant language
- Java
- Stars
- 6.4k
- Forks
- 1.2k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 115
Description
我在IoTDB(0.12.5)中创建了一个时序序列,dataType:DOUBLE,encoding:PLAIN,compression:SNAPPY
里面存储的数据是每秒一个值,数据小数点后位数较长,类似这种数据,21.11077143919472、13.338655912277863
使用如下类似语句计算小时内的平均值:
select AVG(e) from root.a.b.$c$d where time>=1669042800000 and time<1669046400000 group by([1669042800000,1669046400000), 1h)
昨天和今天都分别执行该语句,两天计算出的结果,有些许的偏差
昨天结算结果是:49.64659657087113
今天的计算结果是:49.64659657087112
请问这是怎么回事
Contributor guide
Research direction
No source file or test is named; begin by reproducing the AVG/group-by query in IoTDB 0.12.5 with the reported DOUBLE values and compare repeated executions. Done means determining the cause of the 1e-14 result difference and documenting or correcting the behavior.
Written by the indexing model from the issue text.
Assessment
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100