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 2021/01/11 07:51:38 UTC

[GitHub] [iotdb] wshao08 commented on pull request #2457: Fix delete bug in delete range judge

wshao08 commented on pull request #2457:
URL: https://github.com/apache/iotdb/pull/2457#issuecomment-757683258


   Hi. To make sure the two range has intersection, only T3 <= T2 or T4 >= T1 is not enough. 
   e.g. 
   [T1,T2] : [100,200]
   [T3,T4] : [50, 80]
   T3 <= T2 but the two ranges have no intersection.
   
   It is easy to know that if T2<T3 or T4<T1, the two ranges cannot have intersection. Then go with the reverse logic the result should be !(T2<T3 or T4<T1) => (T2 >= T3 && T4>=T1)
   Please check.


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