macroguo-ghy commented on code in PR #3712:
URL: https://github.com/apache/calcite/pull/3712#discussion_r1515635968


##########
core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -691,7 +691,10 @@ 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();
+      // Since Spark 2.0, string literals (including regex patterns) are 
unescaped in SQL parser

Review Comment:
   `rlike` also enabled in HIVE library, does the `rlike` function have the 
same semantics in hive as in spark sql?



-- 
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

Reply via email to