presto-main/src/main/java/io/prestosql/sql/planner/ExpressionInterpreter.java/Visitor/evaluateLikePredicate
class Visitor:        private boolean evaluateLikePredicate(LikePredicate node, Slice value, Regex regex)
        {
            if (type(node.getValue()) instanceof VarcharType) {
                return LikeFunctions.likeVarchar(value, regex);
            }

            Type type = type(node.getValue());
            checkState(type instanceof CharType, "LIKE value is neither VARCHAR or CHAR");
            return LikeFunctions.likeChar((long) ((CharType) type).getLength(), value, regex);
        }