hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Natkovich (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (PIG-676) Diff does not check if the first input is a bag or not
Date Fri, 09 Jul 2010 22:46:49 GMT

     [ https://issues.apache.org/jira/browse/PIG-676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Olga Natkovich resolved PIG-676.
--------------------------------

    Fix Version/s: 0.7.0
       Resolution: Fixed

I checked the code - it is now doing the right thing

> Diff does not check if the first input is a bag or not
> ------------------------------------------------------
>
>                 Key: PIG-676
>                 URL: https://issues.apache.org/jira/browse/PIG-676
>             Project: Pig
>          Issue Type: Bug
>         Environment: i686 i386 GNU/Linux
> ava version "1.6.0_02"
> Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
> Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)
>            Reporter: Araceli Henley
>            Priority: Trivial
>             Fix For: 0.7.0
>
>
> I passed in a constant value "0.0" for the first argument, aexpecting that an error such
as "Invalid type passed to DIFF" or some such error, but this is processed without any errors.
> TEST: AggregateFunc_101
> A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double,
Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{
t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );
> B =GROUP A ALL; 
> X =FOREACH B GENERATE A.Fint, DIFF( 0.0, A.Fbag );
> STORE X INTO ':OUTPATH:' USING PigStorage();

-- 
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