You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Koji Noguchi (JIRA)" <ji...@apache.org> on 2016/02/29 21:16:18 UTC
[jira] [Updated] (PIG-4818) Single quote inside comment in GENERATE
is not being ignored
[ https://issues.apache.org/jira/browse/PIG-4818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Koji Noguchi updated PIG-4818:
------------------------------
Attachment: pig-4818-v01.patch
It seems like a minor change in PIG-2507 caused this unexpected behavior. Not understanding javacc much, but pasting some changes that seem to work. Appreciate if someone can review the change.
> Single quote inside comment in GENERATE is not being ignored
> ------------------------------------------------------------
>
> Key: PIG-4818
> URL: https://issues.apache.org/jira/browse/PIG-4818
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.15.0
> Reporter: Koji Noguchi
> Assignee: Koji Noguchi
> Priority: Minor
> Attachments: pig-4818-v01.patch
>
>
> {code}
> A = load '1.txt' as (a1:int, a2:int);
> B = FOREACH A GENERATE a1,
> -- testing ' here with single quote
> a2;
> dump B;
> {code}
> This fails with
> {panel}
> 2016-02-29 20:09:05,507 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Lexical error at line 6, column 0. Encountered: <EOF> after : ""
> {panel}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)