presto-iceberg/src/main/java/io/prestosql/plugin/iceberg/PartitionTable.java/PartitionTable/toMap
class PartitionTable:    private Map<Integer, Object> toMap(Map<Integer, ByteBuffer> idToMetricMap)
    {
        ImmutableMap.Builder<Integer, Object> map = ImmutableMap.builder();
        idToMetricMap.forEach((id, value) -> {
            Type.PrimitiveType type = idToTypeMapping.get(id);
            map.put(id, Conversions.fromByteBuffer(type, value));
        });
        return map.build();
    }