Return-Path: Delivered-To: apmail-hadoop-pig-dev-archive@www.apache.org Received: (qmail 66098 invoked from network); 14 May 2010 06:47:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 May 2010 06:47:21 -0000 Received: (qmail 55631 invoked by uid 500); 14 May 2010 06:47:21 -0000 Delivered-To: apmail-hadoop-pig-dev-archive@hadoop.apache.org Received: (qmail 55607 invoked by uid 500); 14 May 2010 06:47:21 -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 55599 invoked by uid 99); 14 May 2010 06:47:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 May 2010 06:47:21 +0000 X-ASF-Spam-Status: No, hits=-1425.7 required=10.0 tests=ALL_TRUSTED,AWL 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; Fri, 14 May 2010 06:47:20 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4E6l0Rd021077 for ; Fri, 14 May 2010 06:47:00 GMT Message-ID: <22292896.35121273819620651.JavaMail.jira@thor> Date: Fri, 14 May 2010 02:47:00 -0400 (EDT) From: "Daniel Dai (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Closed: (PIG-829) DECLARE statement stop processing after special characters such as dot "." , "+" "%" etc.. In-Reply-To: <1492768878.1243906387335.JavaMail.jira@brutus> 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/PIG-829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Dai closed PIG-829. -------------------------- > DECLARE statement stop processing after special characters such as dot "." , "+" "%" etc.. > ------------------------------------------------------------------------------------------ > > Key: PIG-829 > URL: https://issues.apache.org/jira/browse/PIG-829 > Project: Pig > Issue Type: Bug > Components: grunt > Affects Versions: 0.3.0 > Reporter: Viraj Bhat > Fix For: 0.7.0 > > > The below Pig script does not work well, when special characters are used in the DECLARE statement. > {code} > %DECLARE OUT foo.bar > x = LOAD 'something' as (a:chararray, b:chararray); > y = FILTER x BY ( a MATCHES '^.*yahoo.*$' ); > STORE y INTO '$OUT'; > {code} > When the above script is run in the dry run mode; the substituted file does not contain the special character. > {code} > java -cp pig.jar:/homes/viraj/hadoop-0.18.0-dev/conf -Dhod.server='' org.apache.pig.Main -r declaresp.pig > {code} > Resulting file: "declaresp.pig.substituted" > {code} > x = LOAD 'something' as (a:chararray, b:chararray); > y = FILTER x BY ( a MATCHES '^.*yahoo.*$' ); > STORE y INTO 'foo'; > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.