private static Set<Integer> identityPartitionColumnsInAllSpecs(Table table) {
    // Extract identity partition column source ids common to ALL specs
    return table.spec().fields().stream()
        .filter(field -> field.transform().isIdentity())
        .filter(
            field ->
                table.specs().values().stream().allMatch(spec -> spec.fields().contains(field)))
        .map(PartitionField::sourceId)
        .collect(toImmutableSet());
  }
Iceberg original metadata has some problems for mixed-format table, such as iceberg version,
table type. So copy from IcebergMetadata and made some change
amoro-format-mixed/amoro-mixed-trino/src/main/java/org/apache/amoro/trino/unkeyed/IcebergMetadata.java