static List<String> generatePartitionNames(@NotNull String prefix, int npartitions) {
    return IntStream.range(0, npartitions).mapToObj(i -> prefix + i).collect(Collectors.toList());
  }
Add many partitions in one HMS call

@param client      HMS Client
@param dbName      database name
@param tableName   table name
@param arguments   list of partition names
@param npartitions number of partitions to create
@throws TException if fails to create partitions
standalone-metastore/metastore-tools/tools-common/src/main/java/org/apache/hadoop/hive/metastore/tools/Util.java