[ 
https://issues.apache.org/jira/browse/HIVE-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163409#comment-13163409
 ] 

Navis commented on HIVE-2594:
-----------------------------

It's interesting.. Literals are decoded like below.
{code}
'aaa\%' --> 'aaa\%'
'aaa\\%' --> 'aaa\%'
'aaa\\\%' --> 'aaa\\%'
'aaa\\\\%' --> 'aaa\\%'
{code}

Basically all literals are escaped in SemanticAnalyzer. So other entities like 
'UDFLike' might not have to try escape, IMHO. But 
BaseSemanticAnalyzer#unescapeSQLString keeps preceding back slash as-is in some 
cases like 'bs%' or 'bs_' which make impossible to identify whether it(=bs) is 
a escape or a character. 
                
> UDF LIKE can't handle literal '\' before '%'
> --------------------------------------------
>
>                 Key: HIVE-2594
>                 URL: https://issues.apache.org/jira/browse/HIVE-2594
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>    Affects Versions: 0.8.0
>            Reporter: Carl Steinbach
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to