Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 78DF818F5E for ; Sat, 13 Feb 2016 08:11:21 +0000 (UTC) Received: (qmail 9238 invoked by uid 500); 13 Feb 2016 08:11:21 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 9173 invoked by uid 500); 13 Feb 2016 08:11:21 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 9162 invoked by uid 99); 13 Feb 2016 08:11:21 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2016 08:11:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E19EE1A05AD for ; Sat, 13 Feb 2016 08:11:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.349 X-Spam-Level: X-Spam-Status: No, score=-4.349 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id d4XufFfJbLJN for ; Sat, 13 Feb 2016 08:11:19 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id CB6CF5FAF2 for ; Sat, 13 Feb 2016 08:11:18 +0000 (UTC) Received: (qmail 8639 invoked by uid 99); 13 Feb 2016 08:11:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2016 08:11:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 136662C14F6 for ; Sat, 13 Feb 2016 08:11:18 +0000 (UTC) Date: Sat, 13 Feb 2016 08:11:18 +0000 (UTC) From: "James Taylor (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (PHOENIX-2602) Parser does not handle escaped LPAREN 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/PHOENIX-2602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Taylor reopened PHOENIX-2602: ----------------------------------- I'm seeing these warning after this change. Would you mind investigating, [~tdsilva]? {code} PhoenixSQL.g warning(200): PhoenixSQL.g:1210:5: Decision can match input such as "'\\''\'''\'''\''{'\u0000'..'&', '('..'\uFFFF'}" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input warning(200): PhoenixSQL.g:1210:5: Decision can match input such as "'\\''\\'" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input warning(200): PhoenixSQL.g:1210:5: Decision can match input such as "'\\''"'" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input warning(200): PhoenixSQL.g:1210:5: Decision can match input such as "'\\''b'" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input warning(200): PhoenixSQL.g:1210:5: Decision can match input such as "'\\''r'" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input warning(200): PhoenixSQL.g:1210:5: Decision can match input such as "'\\''_'" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input warning(200): PhoenixSQL.g:1210:5: Decision can match input such as "'\\''f'" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input warning(200): PhoenixSQL.g:1210:5: Decision can match input such as "'\\''t'" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input warning(200): PhoenixSQL.g:1210:5: Decision can match input such as "'\\''n'" using multiple alternatives: 1, 2 As a result, alternative(s) 2 were disabled for that input {code} > Parser does not handle escaped LPAREN > ------------------------------------- > > Key: PHOENIX-2602 > URL: https://issues.apache.org/jira/browse/PHOENIX-2602 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.6.0 > Reporter: Nick Dimiduk > Assignee: Thomas D'Silva > Fix For: 4.7.0 > > Attachments: PHOENIX-2602-4.x-HBase-0.98.patch > > > Seems parsing string literals isn't working quite right. > {noformat} > 0: jdbc:phoenix:localhost> explain select foo from bar where foo not like '%\(%' ; > line 1:50 no viable alternative at character '(' > Error: ERROR 602 (42P00): Syntax error. Missing "LPAREN" at line 1, column 35. (state=42P00,code=602) > org.apache.phoenix.exception.PhoenixParserException: ERROR 602 (42P00): Syntax error. Missing "LPAREN" at line 1, column 35. > at org.apache.phoenix.exception.PhoenixParserException.newException(PhoenixParserException.java:33) > at org.apache.phoenix.parse.SQLParser.parseStatement(SQLParser.java:111) > at org.apache.phoenix.jdbc.PhoenixStatement$PhoenixStatementParser.parseStatement(PhoenixStatement.java:1285) > at org.apache.phoenix.jdbc.PhoenixStatement.parseStatement(PhoenixStatement.java:1366) > at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1429) > at sqlline.Commands.execute(Commands.java:822) > at sqlline.Commands.sql(Commands.java:732) > at sqlline.SqlLine.dispatch(SqlLine.java:808) > at sqlline.SqlLine.begin(SqlLine.java:681) > at sqlline.SqlLine.start(SqlLine.java:398) > at sqlline.SqlLine.main(SqlLine.java:292) > Caused by: MissingTokenException(inserted [@-1,0:0='',<90>,1:34] at foo) > at org.apache.phoenix.parse.PhoenixSQLParser.recoverFromMismatchedToken(PhoenixSQLParser.java:350) > at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115) > at org.apache.phoenix.parse.PhoenixSQLParser.not_expression(PhoenixSQLParser.java:6463) > at org.apache.phoenix.parse.PhoenixSQLParser.and_expression(PhoenixSQLParser.java:6283) > at org.apache.phoenix.parse.PhoenixSQLParser.or_expression(PhoenixSQLParser.java:6220) > at org.apache.phoenix.parse.PhoenixSQLParser.expression(PhoenixSQLParser.java:6185) > at org.apache.phoenix.parse.PhoenixSQLParser.single_select(PhoenixSQLParser.java:4388) > at org.apache.phoenix.parse.PhoenixSQLParser.unioned_selects(PhoenixSQLParser.java:4470) > at org.apache.phoenix.parse.PhoenixSQLParser.select_node(PhoenixSQLParser.java:4535) > at org.apache.phoenix.parse.PhoenixSQLParser.oneStatement(PhoenixSQLParser.java:766) > at org.apache.phoenix.parse.PhoenixSQLParser.explain_node(PhoenixSQLParser.java:987) > at org.apache.phoenix.parse.PhoenixSQLParser.oneStatement(PhoenixSQLParser.java:946) > at org.apache.phoenix.parse.PhoenixSQLParser.statement(PhoenixSQLParser.java:500) > at org.apache.phoenix.parse.SQLParser.parseStatement(SQLParser.java:108) > ... 9 more > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)