[
https://issues.apache.org/jira/browse/IOTDB-394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17004377#comment-17004377
]
Jialin Qiao commented on IOTDB-394:
-----------------------------------
Hi, currently you could use aggregations to get the results.
For example, getting the last time-value of root.sg1.d1.s1:
select last_value(s1),max_time(s1) from root.sg1.d1
The result is like this:
last_value(s1), max_time(s1)
1, 1
We plan to offer a new grammar like "select last(s1) from root.sg1.d1", the
result is:
path, time, value
root.sg1.d1.s1, 1, 1
> How to query the latest data point
> ----------------------------------
>
> Key: IOTDB-394
> URL: https://issues.apache.org/jira/browse/IOTDB-394
> Project: Apache IoTDB
> Issue Type: Wish
> Reporter: chenzhengwei
> Priority: Major
>
> For example, if I have a device with 10 sensors (normal/abnormal detection
> status), I want to know the status of all the current sensors of this device,
> so I need to query the latest data point of all the sensors
--
This message was sent by Atlassian Jira
(v8.3.4#803005)