private static PartitionData toPartitionData(StructLike key, Types.StructType keyType) {
      PartitionData keyTemplate = new PartitionData(keyType);
      return keyTemplate.copyFor(key);
    }
Needed because StructProjection is not serializable
iceberg/patched-iceberg-core/src/main/java/org/apache/iceberg/PartitionsTable.java