code: private static Partition createRangeSubPartition(SqlgGraph sqlgGraph, Partition parentPartition, String name, String from, String to) {
          Preconditions.checkArgument(!parentPartition.getAbstractLabel().getSchema().isSqlgSchema(), "createRangeSubPartition may not be called for \"%s\"", Topology.SQLG_SCHEMA);
          Partition partition = new Partition(sqlgGraph, parentPartition, name, from, to, PartitionType.NONE, null);
          partition.createRangePartitionOnDb();
          TopologyManager.addSubPartition(sqlgGraph, partition);
          partition.committed = false;
          return partition;
      }
docs: Create a range partition on an existing {@link Partition}
  
  @param sqlgGraph
  @param parentPartition
  @param name
  @param from
  @param to
  @return