@Override
  public void setTableName(String tableName) {
    partitionSpec.setTableName(tableName);
    for (Partition partition : partitionSpec.getPartitionList().getPartitions()) {
      partition.setTableName(tableName);
    }
  }
PartitionSpecProxy implementation that composes a List of Partitions.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/partition/spec/PartitionListComposingSpecProxy.java