public static List<TransformSpec> getPartitionTransformSpec(List<FieldSchema> fields) {
    return fields.stream()
               .map(field -> new TransformSpec(field.getName(), TransformType.IDENTITY, Optional.empty()))
               .collect(Collectors.toList());
  }
Get the identity transform specification based on the partition columns
@param fields The partition column fields
@return list of partition transforms
ql/src/java/org/apache/hadoop/hive/ql/parse/PartitionTransform.java