YiwenWu commented on code in PR #3712: URL: https://github.com/apache/calcite/pull/3712#discussion_r1510157247
########## core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java: ########## @@ -691,7 +691,9 @@ private static int makeRegexpFlags(String stringFlags) { /** SQL {@code RLIKE} function. */ public boolean rlike(String s, String pattern) { - return cache.getUnchecked(new Key(0, pattern)).matcher(s).find(); + s = StringEscapeUtils.unescapeJava(s); Review Comment: done, add comment -- 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: commits-unsubscr...@calcite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org