[
https://issues.apache.org/jira/browse/IOTDB-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17034666#comment-17034666
]
atoildw commented on IOTDB-298:
-------------------------------
i have a question, if i'm in step 2 for scanning last result ,at the same time
another thread was exec insert ,so you wanna block insert? or kill raw data
query?
> Last time-value query
> ---------------------
>
> Key: IOTDB-298
> URL: https://issues.apache.org/jira/browse/IOTDB-298
> Project: Apache IoTDB
> Issue Type: New Feature
> Reporter: Jialin Qiao
> Assignee: Shao Wei
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> We have two aggregators:
> last_value -> return the value of the last data point
> max_time -> return the time of the last data point
> However, we do not have an aggregator that returns the last time-value pair.
> This is very antihuman in a time-series database :(:(:(
>
> I suggest adding a new last query:
>
> last s1 from root.sg1.d1, root.sg1.d2 or other similar grammar.
>
> The Result should be in the following format:
>
> Path, Time, Value
> root.sg1.d1.s1, 100, 100
> root.sg1.d2.s1, 10, 10
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)