snuyanzin commented on code in PR #4994:
URL: https://github.com/apache/calcite/pull/4994#discussion_r3362760195
##########
core/src/main/java/org/apache/calcite/rex/RexSimplify.java:
##########
@@ -570,6 +570,17 @@ && consecutiveSameCharCountBefore(str, start - 1, escape)
% 2 == 1) {
return builder.toString();
}
+ private static Pattern getWildCardPattern(char escape) {
+ switch (escape) {
+ case '%':
+ return Pattern.compile("_+");
Review Comment:
if `%` is escape symbol then it should not be a part of wildcard pattern
--
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]