You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2020/07/20 09:47:00 UTC

[GitHub] [incubator-iotdb] guvexie commented on issue #1527: Fill填充值的真实场景需求(某时间段内按间隔时间填充)

guvexie commented on issue #1527:
URL: https://github.com/apache/incubator-iotdb/issues/1527#issuecomment-660924387


   0.10版本已支持:
   IoTDB> select last_value(width),last_value(high) from root.tw.iot.cp where timestamp>0 and timestamp<41 group by((0,40],5ms) fill(all[PREVIOUSUNTILLAST])
   +-----------------------------+--------------------------------+-------------------------------+
   |                         Time|last_value(root.tw.iot.cp.width)|last_value(root.tw.iot.cp.high)|
   +-----------------------------+--------------------------------+-------------------------------+
   |1970-01-01T08:00:00.005+08:00|                             8.5|                            2.6|
   |1970-01-01T08:00:00.010+08:00|                            5.63|                            4.3|
   |1970-01-01T08:00:00.015+08:00|                            5.63|                            4.3|
   |1970-01-01T08:00:00.020+08:00|                             8.2|                            5.3|
   |1970-01-01T08:00:00.025+08:00|                             8.2|                            5.3|
   |1970-01-01T08:00:00.030+08:00|                             6.2|                            3.3|
   |1970-01-01T08:00:00.035+08:00|                             6.2|                            3.3|
   |1970-01-01T08:00:00.040+08:00|                             6.8|                            4.4|
   +-----------------------------+--------------------------------+-------------------------------+
   Total line number = 8
   It costs 0.026s


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org