Return-Path: Delivered-To: apmail-incubator-pig-dev-archive@locus.apache.org Received: (qmail 97171 invoked from network); 16 Jul 2008 21:00:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jul 2008 21:00:30 -0000 Received: (qmail 99056 invoked by uid 500); 16 Jul 2008 21:00:30 -0000 Delivered-To: apmail-incubator-pig-dev-archive@incubator.apache.org Received: (qmail 99027 invoked by uid 500); 16 Jul 2008 21:00:30 -0000 Mailing-List: contact pig-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pig-dev@incubator.apache.org Delivered-To: mailing list pig-dev@incubator.apache.org Received: (qmail 99016 invoked by uid 99); 16 Jul 2008 21:00:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2008 14:00:30 -0700 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT 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; Wed, 16 Jul 2008 20:59:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A41C0234C169 for ; Wed, 16 Jul 2008 13:59:31 -0700 (PDT) Message-ID: <928534549.1216241971667.JavaMail.jira@brutus> Date: Wed, 16 Jul 2008 13:59:31 -0700 (PDT) From: "Pradeep Kamath (JIRA)" To: pig-dev@incubator.apache.org Subject: [jira] Commented: (PIG-313) Error handling aggregate of a computation In-Reply-To: <2056902753.1216081291638.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PIG-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614097#action_12614097 ] Pradeep Kamath commented on PIG-313: ------------------------------------ Per http://wiki.apache.org/pig/PigTypesFunctionalSpec - in the last section: "Argument Construction for Functions" - it says that the computation will be done the fields per tuple in the group and the computed results will be stored into a bag and then supplied to SUM - Is this not going to be the case in this new Pig types release - if not the wiki should be updated. > Error handling aggregate of a computation > ----------------------------------------- > > Key: PIG-313 > URL: https://issues.apache.org/jira/browse/PIG-313 > Project: Pig > Issue Type: Bug > Affects Versions: types_branch > Reporter: Pradeep Kamath > Fix For: types_branch > > > Query which fails: > {code} > a = load ':INPATH:/singlefile/studenttab10k' as (name:chararray, age:int, gpa:double); > b = group a by name; > c = foreach b generate group, SUM(a.age*a.gpa); > store c into ':OUTPATH:';\, > {code} > Error output: > {quote} > 2008-07-14 16:34:08,684 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file system at: testhost.com:8020 > 2008-07-14 16:34:08,741 [main] WARN org.apache.hadoop.fs.FileSystem - "testhost.com:8020" is a deprecated filesystem name. Use "hdfs://testhost:8020/" instead. > 2008-07-14 16:34:08,995 [main] INFO org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to map-reduce job tracker at: testhost.com:50020 > 2008-07-14 16:34:09,251 [main] WARN org.apache.hadoop.fs.FileSystem - "testhost.com:8020" is a deprecated filesystem name. Use "hdfs://testhost:8020/" instead. > 2008-07-14 16:34:09,559 [main] ERROR org.apache.pig.PigServer - Cannot evaluate output type of Mul/Div Operator > 2008-07-14 16:34:09,559 [main] ERROR org.apache.pig.PigServer - Problem resolving LOForEach schema > 2008-07-14 16:34:09,559 [main] ERROR org.apache.pig.PigServer - Severe problem found during validation org.apache.pig.impl.plan.PlanValidationException: An unexpected exception caused the validation to stop > 2008-07-14 16:34:09,560 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.io.IOException: Unable to store for alias: c > 2008-07-14 16:34:09,560 [main] ERROR org.apache.pig.Main - java.io.IOException: Unable to store for alias: c > {quote} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.