public static void validateNotPartitionedByNestedField(
      Schema schema, PartitionSpec partitionSpec) {
    Map<Integer, Integer> indexParents = indexParents(schema.asStruct());
    for (PartitionField field : partitionSpec.fields()) {
      if (indexParents.containsKey(field.sourceId())) {
        throw new TrinoException(
            NOT_SUPPORTED, "Partitioning by nested field is unsupported: " + field.name());
      }
    }
  }
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