You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2011/05/23 23:15:47 UTC

[jira] [Commented] (PIG-2082) bincond ERROR 1050: Unsupported typ for BindCond: left hand side: tuple

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

Daniel Dai commented on PIG-2082:
---------------------------------

Python has similar issue. Python treats (1) as integer 1, if user want a tuple constant, he needs to say (1,). In Pig, (1,) might also cause confusion with (1,null), so I don't insist to support (1,). But seems treat (1) as integer 1 is reasonable, and has the same behavior as Python. 

> bincond ERROR 1050: Unsupported typ for BindCond: left hand side: tuple 
> ------------------------------------------------------------------------
>
>                 Key: PIG-2082
>                 URL: https://issues.apache.org/jira/browse/PIG-2082
>             Project: Pig
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.9.0
>         Environment: Linux 2.6.18-53.1.13.el5 #1 SMP Mon Feb 11 13:27:27 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
> Hadoop 0.20.203.3.1104011556 Compiled on Fri Apr  1 16:29:09 PDT 2011
>            Reporter: Araceli Henley
>            Assignee: Thejas M Nair
>             Fix For: 0.10
>
>
> Regression for 9, this passes on 8
> 2011-05-19 00:28:31,619 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1050 Unsupported
> input type for BinCond: left hand side: tuple; right hand side: double
> a = load '1.txt' as (a0, a1);
> b = foreach a generate (a0==0?(1):{a1/5));
> explain b;

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