Return-Path: Delivered-To: apmail-incubator-pig-dev-archive@locus.apache.org Received: (qmail 84072 invoked from network); 28 Jul 2008 19:03:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jul 2008 19:03:52 -0000 Received: (qmail 36102 invoked by uid 500); 28 Jul 2008 19:03:52 -0000 Delivered-To: apmail-incubator-pig-dev-archive@incubator.apache.org Received: (qmail 36073 invoked by uid 500); 28 Jul 2008 19:03:52 -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 36060 invoked by uid 99); 28 Jul 2008 19:03:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2008 12:03:52 -0700 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; Mon, 28 Jul 2008 19:03:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C500B234C173 for ; Mon, 28 Jul 2008 12:03:31 -0700 (PDT) Message-ID: <1475017337.1217271811801.JavaMail.jira@brutus> Date: Mon, 28 Jul 2008 12:03:31 -0700 (PDT) From: "Alan Gates (JIRA)" To: pig-dev@incubator.apache.org Subject: [jira] Created: (PIG-344) Ordering on types other than byte array fails. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Ordering on types other than byte array fails. ---------------------------------------------- Key: PIG-344 URL: https://issues.apache.org/jira/browse/PIG-344 Project: Pig Issue Type: Bug Affects Versions: types_branch Reporter: Alan Gates Assignee: Alan Gates Priority: Critical Fix For: types_branch {code} A = load '/Users/gates/test/data/studenttab10' as (name: chararray, age: long, gpa: float); B = order A by gpa; dump B; {code} java.io.IOException: Type mismatch in key from map: expected org.apache.hadoop.io.BytesWritable, recieved org.apache.hadoop.io.FloatWritable at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:419) at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce$Map.collect(PigMapReduce.java:79) at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.map(PigMapBase.java:119) at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce$Map.map(PigMapReduce.java:71) at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:47) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:219) at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:157) If the gpa type is not declared, then the sort passes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.