public static boolean isBucket(TransformSpec spec) {
    // Iceberg's bucket transform requires a bucket number to be specified
    return spec.getTransformType() == TransformType.BUCKET && spec.getTransformParam().isPresent();
  }
Create {@link PartitionSpec} based on the partition information stored in
{@link TransformSpec}.
@param configuration a Hadoop configuration
@param schema iceberg table schema
@return iceberg partition spec, always non-null
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/IcebergTableUtil.java