You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Peter Rozsa (Jira)" <ji...@apache.org> on 2024/09/04 12:35:00 UTC

[jira] [Created] (IMPALA-13357) REGEXP_REPLACE swallows the first backslash from escaped strings

Peter Rozsa created IMPALA-13357:
------------------------------------

             Summary: REGEXP_REPLACE swallows the first backslash from escaped strings
                 Key: IMPALA-13357
                 URL: https://issues.apache.org/jira/browse/IMPALA-13357
             Project: IMPALA
          Issue Type: Bug
            Reporter: Peter Rozsa


Example: select regexp_replace('a\\b', '\\+', ''); 

Output: a\b (the shell interprets the first \)

Expected output: ab

 
getUnescapedValue() in StringLiteral uses MetastoreShim.unescapeSQLString which removes the first backslash from the pattern



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org