@Test
  public void overFlowTest() {

    String[] expectedHeader = new String[] {"time", "value"};
    String[] retArray = new String[20];

    long startTime = 1;
    for (int i = 0; i < 20; i++) {
      long time = startTime + 2147483648L;
      retArray[i] =
          String.format(
              "%s,%d,",
              RpcUtils.formatDatetime(
                  DEFAULT_TIME_FORMAT, TIME_PRECISION_IN_MS, time, DEFAULT_ZONE_ID),
              i);
      startTime += 2147483648L;
    }

    tableResultSetEqualTest(
        "SELECT time, value FROM overflow", expectedHeader, retArray, DATABASE_NAME);
  }
This method generate test data with crossing time.

<p>The data can be viewed in online doc:

<p>https://docs.google.com/spreadsheets/d/18XlOIi27ZIIdRnar2WNXVMxkZwjgwlPZmzJLVpZRpAA/edit#gid=0
integration-test/src/test/java/org/apache/iotdb/relational/it/query/old/alignbydevice/IoTDBOrderByWithAlignByDeviceTableIT.java