hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadoop QA (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-613) Casting elements inside a tuple does not take effect
Date Wed, 24 Feb 2010 00:33:29 GMT

    [ https://issues.apache.org/jira/browse/PIG-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837547#action_12837547
] 

Hadoop QA commented on PIG-613:
-------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12436788/PIG-613-2.patch
  against trunk revision 915578.

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 22 new or modified tests.

    -1 patch.  The patch command could not apply the patch.

Console output: http://hudson.zones.apache.org/hudson/job/Pig-Patch-h8.grid.sp2.yahoo.net/219/console

This message is automatically generated.

> 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: 0.2.0
>            Reporter: Viraj Bhat
>            Assignee: Daniel Dai
>             Fix For: 0.7.0
>
>         Attachments: myfloatdata.txt, PIG-613-1.patch, PIG-613-2.patch, SQUARE.java
>
>
> 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 double.
> {code}
> 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;
> {code}
> ===========================================
> Describe output of B:
> B: {squares: (loadtimesq: long)}
> ===========================================================
> Sample output of B:
> ((7885.44))
> ((792098.2200010001))
> ((1497360.9268889998))
> ((50023.7956))
> ((0.972196))
> ((0.30980356))
> ((9.9760144E-7))
> ===========================================================
> 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.


Mime
View raw message