code: private Partition getPartitionWithCreateTime(Partition partition, int createTime) {
      if (partition.isSetCreateTime() && partition.getCreateTime() > 0) {
        return partition;
      }
      Partition actualPartition = partition.deepCopy();
      actualPartition.setCreateTime(createTime);
      return actualPartition;
    }
docs: Sets create time if not already set.