Joe McDonnell has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/23953 )

Change subject: IMPALA-14731: Fix LIKE starting with % ending with escaped %
......................................................................

IMPALA-14731: Fix LIKE starting with % ending with escaped %

The escape before the % at the end was not parsed properly as an
escape wildcard.

As an example, "%abc\%" matched for anything containing "abc\"
(containing the backslash character), instead of any any string with
the suffix "abc%".

The fix is basically the same as the one for IMPALA-10849 but for the
case when the pattern starts with %.

New test cases were added to exprs.test.

Change-Id: I6eebfaeffdb59d5d2c1cfbd331fa98d0391325e7
Reviewed-on: http://gerrit.cloudera.org:8080/23953
Reviewed-by: Csaba Ringhofer <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M be/src/exprs/like-predicate.cc
M testdata/workloads/functional-query/queries/QueryTest/exprs.test
2 files changed, 41 insertions(+), 1 deletion(-)

Approvals:
  Csaba Ringhofer: Looks good to me, approved
  Impala Public Jenkins: Verified

--
To view, visit http://gerrit.cloudera.org:8080/23953
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I6eebfaeffdb59d5d2c1cfbd331fa98d0391325e7
Gerrit-Change-Number: 23953
Gerrit-PatchSet: 3
Gerrit-Owner: Balazs Hevele <[email protected]>
Gerrit-Reviewer: Balazs Hevele <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>

Reply via email to