[ https://issues.apache.org/jira/browse/PIG-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thejas M Nair updated PIG-2156: ------------------------------- Resolution: Fixed Hadoop Flags: [Reviewed] Status: Resolved (was: Patch Available) +1 . Patch committed to trunk. Thanks Gianmarco! > Limit/Sample with variable does not work if the expression starts with an > integer/double > ---------------------------------------------------------------------------------------- > > Key: PIG-2156 > URL: https://issues.apache.org/jira/browse/PIG-2156 > Project: Pig > Issue Type: Bug > Reporter: Gianmarco De Francisci Morales > Assignee: Gianmarco De Francisci Morales > Attachments: PIG-2156.2.patch, PIG-2156.patch > > > Pig generates an error with this script: > {code} > grunt> a = load 'a.txt'; > grunt> b = group a all; > grunt> c = foreach b generate COUNT(a) as sum; > grunt> d = limit a 1 * c.sum; > [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 4, column > 14> mismatched input '*' expecting SEMI_COLON > {code} > The reason is the parser chooses the wrong alternative. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira