@Override
      public List<Object> run(List<Long> input) throws SQLException {
        for (Long id : input) {
          List<Order> bucketCols = sdIdToSortCols.get(id);
          for (int i = 0; i < bucketCols.size(); i++) {
            statement.setLong(1, id);
            statement.setInt(2, i);
            statement.setString(3, bucketCols.get(i).getCol());
            statement.setInt(4, bucketCols.get(i).getOrder());
            statement.addBatch();
          }
        }
        statement.executeBatch();
        return null;
      }
Gets the next CS id from sequence MPartitionColumnStatistics and increment the CS id by numStats.
@return The CD id before update.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DirectSqlUpdatePart.java