Zoltan Borok-Nagy has posted comments on this change. ( https://gerrit.cloudera.org/25198 )
Change subject: IMPALA-15641: Interpret escapes in the fast paths of LIKE ...................................................................... Patch Set 3: (1 comment) https://gerrit.cloudera.org/#/c/25198/3//COMMIT_MSG Commit Message: https://gerrit.cloudera.org/#/c/25198/3//COMMIT_MSG@26 PS3, Line 26: Hive > What is out approach to Hive compatibility? I would assume that moving away Agreed, PS3 breaks the common case. Master's paths already disagree (the pattern C:\dir% matches 'C:\dir1', but C:\dir_ matches 'C:dir1'), so any single rule changes something. So how about: '\' only escapes '%', '_' and '\', before any other character it's a literal (like a trailing one). Then the pattern C:\dir% matches 'C:\dir...' in all paths, as in master's fast paths and Hive. The only difference left from non-vectorized Hive is that '\\' is one backslash. It's needed for e.g. the pattern %\\% (contains a backslash). In Hive that means "contains \%". For '\%', '\_' and '\\' it also matches the SQL standard and Trino (with ESCAPE '\') and Spark, they reject other escapes -- To view, visit https://gerrit.cloudera.org/25198 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ia8b6872a6a200bfadb36d3ee83869bde76b8f3a5 Gerrit-Change-Number: 25198 Gerrit-PatchSet: 3 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]> Gerrit-Reviewer: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Balazs Hevele <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Fri, 06 Nov 2026 09:26:51 +0000 Gerrit-HasComments: Yes
