presto-spi/src/main/java/io/prestosql/spi/type/VarcharType.java/VarcharType/getLength
class VarcharType:    public Optional<Integer> getLength()
    {
        if (isUnbounded()) {
            return Optional.empty();
        }
        return Optional.of(length);
    }