@Override
  public long getCurrentEndTime(long time1, long time2) {
    return Math.min(time1, time2);
  }
return if order by time asc, return true if time <= endTime, otherwise false.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/process/join/merge/AscTimeComparator.java