private static List<Transform<?, ?>> collectUnknownTransforms(Collection<PartitionSpec> specs) {
    List<Transform<?, ?>> unknownTransforms = Lists.newArrayList();

    for (PartitionSpec spec : specs) {
      spec.fields().stream()
          .map(PartitionField::transform)
          .filter(transform -> transform instanceof UnknownTransform)
          .forEach(unknownTransforms::add);
    }

    return unknownTransforms;
  }
Checks if any of the specs in a table is partitioned.

@param table the table to check.
@return {@code true} if the table is partitioned, {@code false} otherwise.
iceberg/patched-iceberg-core/src/main/java/org/apache/iceberg/Partitioning.java