[ https://issues.apache.org/jira/browse/PIG-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Ding updated PIG-1260: ------------------------------ Attachment: PIG-1260.patch The cause is the EOL is missing at the end of script. The problem is that this is a regression from 0.6. This patch fixes this regression. > Param Subsitution results in parser error if there is no EOL after last line > in script > -------------------------------------------------------------------------------------- > > Key: PIG-1260 > URL: https://issues.apache.org/jira/browse/PIG-1260 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.7.0 > Reporter: Ashutosh Chauhan > Assignee: Richard Ding > Fix For: 0.7.0 > > Attachments: PIG-1260.patch > > > {noformat} > A = load '$INPUT' using PigStorage(':'); > B = foreach A generate $0 as id; > store B into '$OUTPUT' USING PigStorage(); > {noformat} > Invoking above script which contains no EOL in the last line of script as > following: > {noformat} > pig -param INPUT=mydata/input -param OUTPUT=mydata/output myscript.pig > {noformat} > results in parser error: > {noformat} > [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during > parsing. Lexical error at line 3, column 42. Encountered: <EOF> after : "" > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.