[
https://issues.apache.org/jira/browse/PIG-1774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Olga Natkovich reassigned PIG-1774:
-----------------------------------
Assignee: Xuefu Zhang
Xuefu, can we make the parenthesis optional?
> 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.
-
You can reply to this email to add a comment to the issue online.