Return-Path: Delivered-To: apmail-hadoop-pig-dev-archive@www.apache.org Received: (qmail 86797 invoked from network); 20 Oct 2009 20:03:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Oct 2009 20:03:21 -0000 Received: (qmail 18825 invoked by uid 500); 20 Oct 2009 20:03:21 -0000 Delivered-To: apmail-hadoop-pig-dev-archive@hadoop.apache.org Received: (qmail 18809 invoked by uid 500); 20 Oct 2009 20:03: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 18799 invoked by uid 99); 20 Oct 2009 20:03:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 20:03:21 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Tue, 20 Oct 2009 20:03:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 66FDA234C045 for ; Tue, 20 Oct 2009 13:02:59 -0700 (PDT) Message-ID: <1068619096.1256068979414.JavaMail.jira@brutus> Date: Tue, 20 Oct 2009 20:02:59 +0000 (UTC) From: "Olga Natkovich (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Resolved: (PIG-595) Use of Combiner causes java.lang.ClassCastException in ForEach In-Reply-To: <1923647974.1230765404165.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-595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Olga Natkovich resolved PIG-595. -------------------------------- Resolution: Fixed This bug is duplicate of https://issues.apache.org/jira/browse/PIG-746 > Use of Combiner causes java.lang.ClassCastException in ForEach > -------------------------------------------------------------- > > Key: PIG-595 > URL: https://issues.apache.org/jira/browse/PIG-595 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.2.0 > Reporter: Viraj Bhat > Attachments: querypairs.txt > > > The following Pig script causes a ClassCastException when QueryPairs is used in the ForEach statement. This is due to the use of the combiner. > {code} > QueryPairs = load 'querypairs.txt' using PigStorage() as ( q1: chararray, q2: chararray ); > describe QueryPairs; > QueryPairsGrouped = group QueryPairs by ( q1 ); > describe QueryPairsGrouped; > QueryGroups = foreach QueryPairsGrouped generate > group as q1, > COUNT(QueryPairs) as paircount, > QueryPairs as QueryPairs; > describe QueryGroups; > dump QueryGroups; > {code} > ================================================================================================================= > 2008-12-31 15:01:48,713 [main] ERROR org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.Launcher - Error message from task (map) task_200812151518_4922_m_000000java.lang.ClassCastException: org.apache.pig.data.DefaultDataBag cannot be cast to org.apache.pig.data.Tuple > at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POCombinerPackage.getNext(POCombinerPackage.java:122) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigCombiner$Combine.processOnePackageOutput(PigCombiner.java:152) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigCombiner$Combine.reduce(PigCombiner.java:143) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigCombiner$Combine.reduce(PigCombiner.java:57) > at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.combineAndSpill(MapTask.java:904) > at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.sortAndSpill(MapTask.java:785) > at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.flush(MapTask.java:698) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:228) > at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:2207) > ================================================================================================================= -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.