public static String getSerializedPartitionKey(StructLike structLike, PartitionSpec partitionSpec) {
    PartitionKey partitionKey = new PartitionKey(partitionSpec, partitionSpec.schema());
    if (structLike != null) {
      for (int idx = 0; idx < structLike.size(); idx++) {
        partitionKey.set(idx, structLike.get(idx, Object.class));
      }
    }
    return SerializationUtil.serializeToBase64(partitionKey);
  }
Get the new record from the updated record. Populate the `newRecord` with the filed values from `rec`.
@param rec The record read by the file scan task, which contains both the metadata fields and the row data fields
@param newRecord The record object to populate. The end result is the new record after the update.
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/IcebergAcidUtil.java