Steve Carlin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22106
Change subject: IMPALA-13525: Handle escaped characters in string literal ...................................................................... IMPALA-13525: Handle escaped characters in string literal Changed the parser to handle escaped characters. The method is in a new class called ParseUtil. The method was copied from Calcite's SqlParserUtil, but one change was needed. The Calcite method did not handle a backslash in front of a regex character. For Impala, if we detect the backslash in front of a regex character, we leave the character but remove the backslash. This is tested in exprs.test Change-Id: I9b0fbe591d1101350b2ba0f6ddb2967b819ee685 --- M java/calcite-planner/src/main/codegen/templates/Parser.jj A java/calcite-planner/src/main/java/org/apache/impala/calcite/util/ParserUtil.java 2 files changed, 220 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/06/22106/3 -- To view, visit http://gerrit.cloudera.org:8080/22106 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I9b0fbe591d1101350b2ba0f6ddb2967b819ee685 Gerrit-Change-Number: 22106 Gerrit-PatchSet: 3 Gerrit-Owner: Steve Carlin <[email protected]>
