YiwenWu commented on code in PR #3712:
URL: https://github.com/apache/calcite/pull/3712#discussion_r1516138987
##########
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:
Yes, judging by the engine execution behavior, Hive also performs the
unescape, and the result is consistent with Spark.

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