JackieTien97 commented on a change in pull request #821: [IOTDB-298]Last 
time-value query
URL: https://github.com/apache/incubator-iotdb/pull/821#discussion_r380540330
 
 

 ##########
 File path: 
server/src/main/java/org/apache/iotdb/db/qp/physical/crud/InsertPlan.java
 ##########
 @@ -185,4 +190,13 @@ public void deserializeFrom(ByteBuffer buffer) {
   public String toString() {
     return "deviceId: " + deviceId + ", time: " + time;
   }
+
+  public void updateMNodeLastValues(MNode node) throws QueryProcessException {
+    for (int i = 0; i < measurements.length; i++) {
+      if (node.hasChild(measurements[i])) {
+        Object value = CommonUtils.parseValue(dataTypes[i], values[i]);
+        node.getChild(measurements[i]).updateCachedLast(time, value, 
dataTypes[i]);
+      }
+    }
+  }
 
 Review comment:
   Same as before 

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to