iotdb icon indicating copy to clipboard operation
iotdb copied to clipboard

iotdb diff 是计算差值,但是不能计算每个设备的差值

Open joranbo opened this issue 9 months ago • 4 comments

diff 计算一个设备的差值没问题, 要按每个设备分组,然后计算差值就不行。有别的方式吗? 或者后面会不会支持, 表模式下面

joranbo avatar Mar 20 '25 09:03 joranbo

Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!

github-actions[bot] avatar Mar 20 '25 09:03 github-actions[bot]

可以附上目前的结果和预期的结果吗

CritasWang avatar Apr 07 '25 03:04 CritasWang

这个是预期结果, 就是查询出两个设备, 第二个设备开始计算差值时无前值或者当前值为前值。 Image 这个是实际结果,第二个设备会减去第一个设备的值当成前值。 Image

joranbo avatar Apr 20 '25 05:04 joranbo

diff 的功能是在结果集中进行对比。多个设备在结果集中是无感知的。

不过多设备 diff 这个功能后续版本中会有其他语法来提供支持

CritasWang avatar Apr 21 '25 01:04 CritasWang