pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] Created: (PIG-344) Ordering on types other than byte array fails.
Date Mon, 28 Jul 2008 19:03:31 GMT
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

A = load '/Users/gates/test/data/studenttab10' as (name: chararray, age: long, gpa: float);
B = order A by gpa;
dump B;

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.

View raw message