[ 
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

Reply via email to