siddhantrao23 commented on code in PR #14579:
URL: https://github.com/apache/arrow/pull/14579#discussion_r1015384213


##########
cpp/src/gandiva/regex_util.cc:
##########
@@ -44,6 +45,10 @@ Status RegexUtil::SqlLikePatternToPcre(const std::string& 
sql_pattern, char esca
 
       cur = sql_pattern.at(idx);
       if (cur == '_' || cur == '%' || cur == escape_char) {
+        if (cur == '\\') {

Review Comment:
   This extra condition was needed to escape the '\' in the pcre pattern if the 
escape character itself is a '\'.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to