Balazs Hevele has uploaded this change for review. ( 
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
---
M be/src/exprs/like-predicate.cc
M testdata/workloads/functional-query/queries/QueryTest/exprs.test
2 files changed, 41 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/53/23953/1
--
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: newchange
Gerrit-Change-Id: I6eebfaeffdb59d5d2c1cfbd331fa98d0391325e7
Gerrit-Change-Number: 23953
Gerrit-PatchSet: 1
Gerrit-Owner: Balazs Hevele <[email protected]>

Reply via email to