why does bincond/conditional operator have to be in 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.

Reply via email to