Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C131C9712 for ; Tue, 6 Dec 2011 07:20:05 +0000 (UTC) Received: (qmail 54895 invoked by uid 500); 6 Dec 2011 07:20:05 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 54835 invoked by uid 500); 6 Dec 2011 07:20:04 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 54306 invoked by uid 500); 6 Dec 2011 07:20:02 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 54295 invoked by uid 99); 6 Dec 2011 07:20:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 07:20:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 07:20:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 05816CAC34 for ; Tue, 6 Dec 2011 07:19:40 +0000 (UTC) Date: Tue, 6 Dec 2011 07:19:40 +0000 (UTC) From: "Navis (Commented) (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1812326908.44528.1323155980024.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1109808513.41095.1321575712946.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2594) UDF LIKE can't handle literal '\' before '%' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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