public static TransformSpec getTransformSpec(Table table, String transformName, int sourceId) {
    TransformSpec spec = TransformSpec.fromString(transformName.toUpperCase(),
        table.schema().findColumnName(sourceId));
    return spec;
  }
Returns a list of partition names satisfying the provided partition spec.
@param table Iceberg table
@param partSpecMap Partition Spec used as the criteria for filtering
@param latestSpecOnly when True, returns partitions with the current spec only, else - any specs
@return List of partition names
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/IcebergTableUtil.java