public static boolean isBucketed(Table table) {
    return table.spec().fields().stream().anyMatch(f -> f.transform().toString().startsWith("bucket["));
  }
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