Return-Path: Delivered-To: apmail-hadoop-pig-dev-archive@www.apache.org Received: (qmail 18879 invoked from network); 16 Apr 2009 04:45:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2009 04:45:41 -0000 Received: (qmail 29523 invoked by uid 500); 16 Apr 2009 04:45:41 -0000 Delivered-To: apmail-hadoop-pig-dev-archive@hadoop.apache.org Received: (qmail 29487 invoked by uid 500); 16 Apr 2009 04:45:41 -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 29477 invoked by uid 99); 16 Apr 2009 04:45:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 04:45:41 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 04:45:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A43AB234C003 for ; Wed, 15 Apr 2009 21:45:15 -0700 (PDT) Message-ID: <939756797.1239857115657.JavaMail.jira@brutus> Date: Wed, 15 Apr 2009 21:45:15 -0700 (PDT) From: "George Mavromatis (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Created: (PIG-767) Schema reported from DESCRIBE and actual schema of inner bags are different. 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 Schema reported from DESCRIBE and actual schema of inner bags are different. ---------------------------------------------------------------------------- Key: PIG-767 URL: https://issues.apache.org/jira/browse/PIG-767 Project: Pig Issue Type: Bug Reporter: George Mavromatis Fix For: 0.2.0 The following script: urlContents = LOAD 'inputdir' USING BinStorage() AS (url:bytearray, pg:bytearray); -- describe and dump are in-sync DESCRIBE urlContents; DUMP urlContents; urlContentsG = GROUP urlContents BY url; DESCRIBE urlContentsG; urlContentsF = FOREACH urlContentsG GENERATE group,urlContents.pg; DESCRIBE urlContentsF; DUMP urlContentsF; Prints for the DESCRIBE commands: urlContents: {url: chararray,pg: chararray} urlContentsG: {group: chararray,urlContents: {url: chararray,pg: chararray}} urlContentsF: {group: chararray,pg: {pg: chararray}} The reported schemas for urlContentsG and urlContentsF are wrong. They are also against the section "Schemas for Complex Data Types" in http://wiki.apache.org/pig-data/attachments/FrontPage/attachments/plrm.htm#_Schemas. As expected, actual data observed from DUMP urlContentsG and DUMP urlContentsF do contain the tuple inside the inner bags. The correct schema for urlContentsG is: {group: chararray,urlContents: {t1:(url: chararray,pg: chararray)}} This may sound like a technicality, but it isn't. For instance, a UDF that assumes an inner bag of {chararray} will not work with {(chararray)}. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.