Return-Path: Delivered-To: apmail-pig-dev-archive@www.apache.org Received: (qmail 8294 invoked from network); 15 Feb 2011 18:18:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2011 18:18:24 -0000 Received: (qmail 90432 invoked by uid 500); 15 Feb 2011 18:18:24 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 90318 invoked by uid 500); 15 Feb 2011 18:18:20 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 90310 invoked by uid 500); 15 Feb 2011 18:18:19 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 90307 invoked by uid 99); 15 Feb 2011 18:18:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 18:18:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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, 15 Feb 2011 18:18:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 70F071A6BC4 for ; Tue, 15 Feb 2011 18:17:57 +0000 (UTC) Date: Tue, 15 Feb 2011 18:17:57 +0000 (UTC) From: "Olga Natkovich (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <958890409.18184.1297793877458.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <29991946.100381292276281609.JavaMail.jira@thor> Subject: [jira] Updated: (PIG-1765) as_clause in foreach statement should differentiate between simple type and type within tuple 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-1765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Olga Natkovich updated PIG-1765: -------------------------------- Assignee: Xuefu Zhang Xuefu, can we just follow Alan's suggestion and test to make sure we are not breaking compatibility on this one. > as_clause in foreach statement should differentiate between simple type and type within tuple > --------------------------------------------------------------------------------------------- > > Key: PIG-1765 > URL: https://issues.apache.org/jira/browse/PIG-1765 > Project: Pig > Issue Type: Sub-task > Reporter: Thejas M Nair > Assignee: Xuefu Zhang > Fix For: 0.9.0 > > > In new parser changes, the following statements are treated as same - > f = foreach l generate a as aa :int; -- here the column is now called aa and has type int > f = foreach l generate a as (aa :int); -- this should mean that the column has type "tuple with column aa of type int" > With old parser the 2nd statement results in syntax error, which is fine, because it requires name part . > The parenthesis represent tuple in pig. We should deprecate support for load statement that takes schema without the parenthesis part , such as following example - > l = load 'x' as a:int -- It should be as (a :int) , it is treated as such but this is inconsistent syntax. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira