Return-Path: Delivered-To: apmail-hadoop-pig-dev-archive@www.apache.org Received: (qmail 20102 invoked from network); 21 Sep 2010 17:59:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Sep 2010 17:59:15 -0000 Received: (qmail 32680 invoked by uid 500); 21 Sep 2010 17:59:15 -0000 Delivered-To: apmail-hadoop-pig-dev-archive@hadoop.apache.org Received: (qmail 32480 invoked by uid 500); 21 Sep 2010 17:59:14 -0000 Mailing-List: contact pig-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pig-dev@hadoop.apache.org Delivered-To: mailing list pig-dev@hadoop.apache.org Received: (qmail 32382 invoked by uid 99); 21 Sep 2010 17:59:14 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Sep 2010 17:59:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Sep 2010 17:58:57 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8LHwZbR019891 for ; Tue, 21 Sep 2010 17:58:35 GMT Message-ID: <18072803.322071285091915891.JavaMail.jira@thor> Date: Tue, 21 Sep 2010 13:58:35 -0400 (EDT) From: "Alan Gates (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Updated: (PIG-1581) Parser fails to recognize semicolons in quoted strings In-Reply-To: <13649068.73431283195214671.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PIG-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alan Gates updated PIG-1581: ---------------------------- Assignee: Xuefu Zhang Fix Version/s: 0.9.0 > Parser fails to recognize semicolons in quoted strings > ------------------------------------------------------ > > Key: PIG-1581 > URL: https://issues.apache.org/jira/browse/PIG-1581 > Project: Pig > Issue Type: Bug > Components: grunt > Affects Versions: 0.7.0 > Environment: CentOS 5.5 > Reporter: Christopher Hackman > Assignee: Xuefu Zhang > Priority: Minor > Fix For: 0.9.0 > > > Within some contexts, the parser fails to treat semicolons correctly, and sees them as an EOL. > Given an input file: > /test1.txt (in the hdfs) > 1;a > 2;b > 3;c > 4;d > 5;e > And the following Pig script: > REGISTER /tmp/piggybank.jar ; > DEFINE REGEXEXTRACTALL org.apache.pig.piggybank.evaluation.string.RegexExtractAll(); > lines = LOAD '/test1.txt' AS (line:chararray); > delimited = FOREACH lines GENERATE FLATTEN ( > REGEXEXTRACTALL(line, '^(\\d+);(\\w+)$') > ) AS ( > digit:int, > word:chararray > ); > DUMP delimited; > I receive the following error: > ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Lexical error at line 5, column 40. Encountered: after : "\'^(\\\\d+);" -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.