presto-spi/src/main/java/io/prestosql/spi/type/TypeSerde.java/TypeSerde/readType
class TypeSerde:    public static Type readType(TypeManager typeManager, SliceInput sliceInput)
    {
        requireNonNull(sliceInput, "sliceInput is null");

        String id = readLengthPrefixedString(sliceInput);
        Type type = typeManager.getType(TypeId.of(id));
        if (type == null) {
            throw new IllegalArgumentException("Unknown type " + id);
        }
        return type;
    }