You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2010/12/17 16:53:01 UTC

[jira] Updated: (PIG-1774) parser should not require bincond/conditional operator to be within parenthesis

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

Thejas M Nair updated PIG-1774:
-------------------------------

    Summary: parser should not require bincond/conditional operator to be within parenthesis  (was: why does bincond/conditional operator have to be in parenthesis)

> parser should not require bincond/conditional operator to be within parenthesis
> -------------------------------------------------------------------------------
>
>                 Key: PIG-1774
>                 URL: https://issues.apache.org/jira/browse/PIG-1774
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Thejas M Nair
>             Fix For: 0.9.0
>
>
> grunt> f = foreach a generate age > 21 ? 0 : 1;                            
> 2010-12-17 07:45:15,966 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Encountered " <FILTEROP> "> "" at line 1, column 28.
> The conditional operator needs to be put in parenthesis to get it to work . This not intuitive -
> grunt> f = foreach a generate (age > 21 ? 0 : 1);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.