protected static void insertData2() {
    try (Connection iotDBConnection = EnvFactory.getEnv().getConnection();
        Statement statement = iotDBConnection.createStatement()) {
      long startTime = 1;
      String createSql = "CREATE TIMESERIES root.overflow.value WITH DATATYPE=INT32, ENCODING=RLE";
      statement.execute(createSql);
      for (int i = 0; i < 20; i++) {
        String insertTime =
            "INSERT INTO "
                + "root.overflow"
                + "(timestamp,value) VALUES("
                + (startTime + 2147483648L)
                + ","
                + i
                + ")";
        statement.execute(insertTime);
        startTime += 2147483648L;
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
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/db/it/alignbydevice/IoTDBOrderByWithAlignByDeviceIT.java