Return-Path: Delivered-To: apmail-pig-dev-archive@www.apache.org Received: (qmail 82253 invoked from network); 19 Nov 2010 20:29:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Nov 2010 20:29:09 -0000 Received: (qmail 99599 invoked by uid 500); 19 Nov 2010 20:29:40 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 99574 invoked by uid 500); 19 Nov 2010 20:29:40 -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 99566 invoked by uid 500); 19 Nov 2010 20:29:40 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 99563 invoked by uid 99); 19 Nov 2010 20:29:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Nov 2010 20:29:40 +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; Fri, 19 Nov 2010 20:29:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAJKTGZc024266 for ; Fri, 19 Nov 2010 20:29:16 GMT Message-ID: <13684617.204231290198556571.JavaMail.jira@thor> Date: Fri, 19 Nov 2010 15:29:16 -0500 (EST) From: "Daniel Dai (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Updated: (PIG-1737) New logical plan: Improve error messages when merge schema fail In-Reply-To: <31900489.166541290042433573.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-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Dai updated PIG-1737: ---------------------------- Attachment: PIG-1737-2.patch Changed the patch as per Thejas's suggestion. > New logical plan: Improve error messages when merge schema fail > --------------------------------------------------------------- > > Key: PIG-1737 > URL: https://issues.apache.org/jira/browse/PIG-1737 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.8.0 > Reporter: Daniel Dai > Assignee: Daniel Dai > Fix For: 0.8.0 > > Attachments: PIG-1737-1.patch, PIG-1737-2.patch > > > Pig fail when foreach schema does not match user defined schema with the NPE. The error message should be enhanced. Eg: > {code} > a = load '1.txt' as (a0, a1, a2); > b = group a by (a0, a1); > c = foreach b generate flatten(group) as c0; > dump c; > {code} > flatten(group) contains 2 items, user cannot name it into c0 alone. However, Pig die with NPE, which is clueless to the user. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.