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

Thejas M Nair updated PIG-1929:
-------------------------------

    Attachment: PIG-1929.3.patch

PIG-1929.3.patch - Also casts bytearray objects to Tuple/Map in == and != 
operations.

> Type checker failed to catch invalid type comparison
> ----------------------------------------------------
>
>                 Key: PIG-1929
>                 URL: https://issues.apache.org/jira/browse/PIG-1929
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Xuefu Zhang
>            Assignee: Thejas M Nair
>             Fix For: 0.9.0
>
>         Attachments: PIG-1929.1.patch, PIG-1929.2.patch, PIG-1929.3.patch
>
>
> The following script should fail. However, it passed type checking, resulting 
> a backend failure.
> A =LOAD 'x' 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= FILTER A BY ( Ftuple gte ( 1, 2, 3 ));
> STORE B INTO 'y' USING PigStorage();

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to