private List<TimeRange> collectDataRanges(Statement statement, long timeUpperBound, int testNum)
      throws SQLException {
    List<TimeRange> ranges = new ArrayList<>();
    try (ResultSet set =
        statement.executeQuery(
            "select time from table" + testNum + " where time <= " + timeUpperBound)) {
      while (set.next()) {
        long time = set.getLong(1);
        if (ranges.isEmpty()) {
          ranges.add(new TimeRange(time, time));
        } else {
          TimeRange lastRange = ranges.get(ranges.size() - 1);
          if (lastRange.getMax() == time - 1) {
            lastRange.setMax(time);
          } else {
            ranges.add(new TimeRange(time, time));
          }
        }
      }
    }
    return ranges;
  }
Should delete this case after the deletion value filter feature be implemented
integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBDeletionTableIT.java