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/03/11 19:17:59 UTC
[jira] Resolved: (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 ]
Xuefu Zhang resolved PIG-1774.
------------------------------
Resolution: Duplicate
Duplicated with PIG-394
> 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
> Assignee: Xuefu Zhang
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira