wshao08 opened a new issue #2233:
URL: https://github.com/apache/iotdb/issues/2233


   This bug appears in IoTDB 0.11.0 and 0.11.1.
   When the cached Last point of timeseries is deleted, query last again give 
incorrect output.
   
   To Reproduce:
   
   Create a new timeseries and insert data
   ```
   CREATE TIMESERIES root.sg.d1.temperature WITH DATATYPE=FLOAT, ENCODING=RLE
   INSERT INTO root.sg.d1(timestamp,temperature) values(200,20.71)
   INSERT INTO root.sg.d1(timestamp,temperature) values(600,71.12)
   ```
   
   Query Last value once and delete this point.
   ```
   select Last temperature from root.sg.d1
   delete from root.sg.d1.temperature where time > 400
   ```
   
   Query Last again and the point should have been deleted appears .
   ```
   select Last temperature from root.sg.d1
   ```
   This bug is fixed in PR: #2226
   
   ![Screen Shot 2020-12-09 at 7 04 56 
PM](https://user-images.githubusercontent.com/59866276/101621983-73883380-3a51-11eb-98c2-91f6e8fecac6.png)
   


----------------------------------------------------------------
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]


Reply via email to