You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Araceli Henley (JIRA)" <ji...@apache.org> on 2009/02/13 01:38:59 UTC

[jira] Created: (PIG-676) Diff does not check if the first input is a bag or not

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


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.


[jira] Resolved: (PIG-676) Diff does not check if the first input is a bag or not

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ 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.