public MeasurementPath concatAsMeasurementPath(String measurement) {
    int len = nodes.length;
    String[] newNodes = Arrays.copyOf(nodes, nodes.length + 1);
    newNodes[len] = measurement;
    MeasurementPath measurementPath = new MeasurementPath(newNodes);
    measurementPath.device = this.device;
    return measurementPath;
  }
it will return a new partial path

@param partialPath the path you want to concat
@return new partial path
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PartialPath.java