You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2011/04/15 01:15:05 UTC
[jira] [Commented] (PIG-1929) Type checker failed to catch invalid
type comparison
[ https://issues.apache.org/jira/browse/PIG-1929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020092#comment-13020092 ]
Xuefu Zhang commented on PIG-1929:
----------------------------------
+1 for patch PIG-1929.3.patch.
> 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