hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Viraj Bhat (JIRA)" <j...@apache.org>
Subject [jira] Created: (PIG-613) Casting elements inside a tuple does not take effect
Date Fri, 09 Jan 2009 00:16:59 GMT
Casting elements inside a tuple does not take effect

                 Key: PIG-613
                 URL: https://issues.apache.org/jira/browse/PIG-613
             Project: Pig
          Issue Type: Bug
          Components: impl
    Affects Versions: types_branch
            Reporter: Viraj Bhat
             Fix For: types_branch
         Attachments: myfloatdata.txt

Consider the following Pig script which casts return values of the SQUARE UDF which are  tuples
of doubles to long. The describe output of B shows it is long, however the result is still
register statistics.jar;
A = load 'myfloatdata.txt' using PigStorage() as (doublecol:double);
B = foreach A generate (tuple(long))statistics.SQUARE(doublecol) as squares:(loadtimesq);
describe B;
explain B;
dump B;
Describe output of B:
B: {squares: (loadtimesq: long)}
Sample output of B:
Cause: The cast for Tuples has not been implemented in POCast.java

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message