You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Viraj Bhat (JIRA)" <ji...@apache.org> on 2008/12/01 20:13:44 UTC

[jira] Created: (PIG-548) ParseException involving "as" keyword

ParseException involving "as"  keyword
--------------------------------------

                 Key: PIG-548
                 URL: https://issues.apache.org/jira/browse/PIG-548
             Project: Pig
          Issue Type: Bug
    Affects Versions: types_branch
            Reporter: Viraj Bhat
             Fix For: types_branch


The enclosed Pig script, throws the following error:
=====================================================================================================================
org.apache.pig.tools.pigscript.parser.ParseException: Encountered "as" at line 13, column 11.
Was expecting one of:
    <EOF> 
    "cat" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "explain" ...
    "help" ...
    "kill" ...
    "ls" ...
    "mv" ...
    "mkdir" ...
    "pwd" ...
    "quit" ...
    "register" ...
    "rm" ...
    "rmf" ...
    "set" ...
    "illustrate" ...
    "scriptDone" ...
    "" ...
    <EOL> ...
    ";" ...
    
        at org.apache.pig.tools.pigscript.parser.PigScriptParser.generateParseException(PigScriptParser.java:688)
        at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:515)
        at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:356)
        at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:84)
        at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:64)
        at org.apache.pig.Main.main(Main.java:306)
=====================================================================================================================
But the error seems to disappear if a few lines are moved around the "foreach" and "as" keywords. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-548) ParseException involving "as" keyword

Posted by "Viraj Bhat (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viraj Bhat updated PIG-548:
---------------------------

    Priority: Minor  (was: Major)

> ParseException involving "as"  keyword
> --------------------------------------
>
>                 Key: PIG-548
>                 URL: https://issues.apache.org/jira/browse/PIG-548
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Viraj Bhat
>            Priority: Minor
>             Fix For: types_branch
>
>         Attachments: assyntax.pig
>
>
> The enclosed Pig script, throws the following error:
> =====================================================================================================================
> org.apache.pig.tools.pigscript.parser.ParseException: Encountered "as" at line 13, column 11.
> Was expecting one of:
>     <EOF> 
>     "cat" ...
>     "cd" ...
>     "cp" ...
>     "copyFromLocal" ...
>     "copyToLocal" ...
>     "dump" ...
>     "describe" ...
>     "explain" ...
>     "help" ...
>     "kill" ...
>     "ls" ...
>     "mv" ...
>     "mkdir" ...
>     "pwd" ...
>     "quit" ...
>     "register" ...
>     "rm" ...
>     "rmf" ...
>     "set" ...
>     "illustrate" ...
>     "scriptDone" ...
>     "" ...
>     <EOL> ...
>     ";" ...
>     
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.generateParseException(PigScriptParser.java:688)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:515)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:356)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:84)
>         at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:64)
>         at org.apache.pig.Main.main(Main.java:306)
> =====================================================================================================================
> But the error seems to disappear if a few lines are moved around the "foreach" and "as" keywords. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-548) ParseException involving "as" keyword

Posted by "Viraj Bhat (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viraj Bhat updated PIG-548:
---------------------------

    Attachment: assyntax.pig

Pig script causing "as" syntax problem

> ParseException involving "as"  keyword
> --------------------------------------
>
>                 Key: PIG-548
>                 URL: https://issues.apache.org/jira/browse/PIG-548
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Viraj Bhat
>             Fix For: types_branch
>
>         Attachments: assyntax.pig
>
>
> The enclosed Pig script, throws the following error:
> =====================================================================================================================
> org.apache.pig.tools.pigscript.parser.ParseException: Encountered "as" at line 13, column 11.
> Was expecting one of:
>     <EOF> 
>     "cat" ...
>     "cd" ...
>     "cp" ...
>     "copyFromLocal" ...
>     "copyToLocal" ...
>     "dump" ...
>     "describe" ...
>     "explain" ...
>     "help" ...
>     "kill" ...
>     "ls" ...
>     "mv" ...
>     "mkdir" ...
>     "pwd" ...
>     "quit" ...
>     "register" ...
>     "rm" ...
>     "rmf" ...
>     "set" ...
>     "illustrate" ...
>     "scriptDone" ...
>     "" ...
>     <EOL> ...
>     ";" ...
>     
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.generateParseException(PigScriptParser.java:688)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:515)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:356)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:84)
>         at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:64)
>         at org.apache.pig.Main.main(Main.java:306)
> =====================================================================================================================
> But the error seems to disappear if a few lines are moved around the "foreach" and "as" keywords. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PIG-548) ParseException involving "as" keyword

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIG-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748625#action_12748625 ] 

Olga Natkovich commented on PIG-548:
------------------------------------

This will have to wait till we switch parsers. There is no good way to intercept error messages with javacc

> ParseException involving "as"  keyword
> --------------------------------------
>
>                 Key: PIG-548
>                 URL: https://issues.apache.org/jira/browse/PIG-548
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.2.0
>            Reporter: Viraj Bhat
>            Priority: Minor
>         Attachments: assyntax.pig
>
>
> The enclosed Pig script, throws the following error:
> =====================================================================================================================
> org.apache.pig.tools.pigscript.parser.ParseException: Encountered "as" at line 13, column 11.
> Was expecting one of:
>     <EOF> 
>     "cat" ...
>     "cd" ...
>     "cp" ...
>     "copyFromLocal" ...
>     "copyToLocal" ...
>     "dump" ...
>     "describe" ...
>     "explain" ...
>     "help" ...
>     "kill" ...
>     "ls" ...
>     "mv" ...
>     "mkdir" ...
>     "pwd" ...
>     "quit" ...
>     "register" ...
>     "rm" ...
>     "rmf" ...
>     "set" ...
>     "illustrate" ...
>     "scriptDone" ...
>     "" ...
>     <EOL> ...
>     ";" ...
>     
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.generateParseException(PigScriptParser.java:688)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:515)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:356)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:84)
>         at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:64)
>         at org.apache.pig.Main.main(Main.java:306)
> =====================================================================================================================
> But the error seems to disappear if a few lines are moved around the "foreach" and "as" keywords. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (PIG-548) ParseException involving "as" keyword

Posted by "Alan Gates (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Gates reassigned PIG-548:
------------------------------

    Assignee: Xuefu Zhang

> ParseException involving "as"  keyword
> --------------------------------------
>
>                 Key: PIG-548
>                 URL: https://issues.apache.org/jira/browse/PIG-548
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.2.0
>            Reporter: Viraj Bhat
>            Assignee: Xuefu Zhang
>            Priority: Minor
>             Fix For: 0.9.0
>
>         Attachments: assyntax.pig
>
>
> The enclosed Pig script, throws the following error:
> =====================================================================================================================
> org.apache.pig.tools.pigscript.parser.ParseException: Encountered "as" at line 13, column 11.
> Was expecting one of:
>     <EOF> 
>     "cat" ...
>     "cd" ...
>     "cp" ...
>     "copyFromLocal" ...
>     "copyToLocal" ...
>     "dump" ...
>     "describe" ...
>     "explain" ...
>     "help" ...
>     "kill" ...
>     "ls" ...
>     "mv" ...
>     "mkdir" ...
>     "pwd" ...
>     "quit" ...
>     "register" ...
>     "rm" ...
>     "rmf" ...
>     "set" ...
>     "illustrate" ...
>     "scriptDone" ...
>     "" ...
>     <EOL> ...
>     ";" ...
>     
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.generateParseException(PigScriptParser.java:688)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:515)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:356)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:84)
>         at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:64)
>         at org.apache.pig.Main.main(Main.java:306)
> =====================================================================================================================
> But the error seems to disappear if a few lines are moved around the "foreach" and "as" keywords. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-548) ParseException involving "as" keyword

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-548:
-------------------------------

    Fix Version/s: 0.9.0

> ParseException involving "as"  keyword
> --------------------------------------
>
>                 Key: PIG-548
>                 URL: https://issues.apache.org/jira/browse/PIG-548
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.2.0
>            Reporter: Viraj Bhat
>            Priority: Minor
>             Fix For: 0.9.0
>
>         Attachments: assyntax.pig
>
>
> The enclosed Pig script, throws the following error:
> =====================================================================================================================
> org.apache.pig.tools.pigscript.parser.ParseException: Encountered "as" at line 13, column 11.
> Was expecting one of:
>     <EOF> 
>     "cat" ...
>     "cd" ...
>     "cp" ...
>     "copyFromLocal" ...
>     "copyToLocal" ...
>     "dump" ...
>     "describe" ...
>     "explain" ...
>     "help" ...
>     "kill" ...
>     "ls" ...
>     "mv" ...
>     "mkdir" ...
>     "pwd" ...
>     "quit" ...
>     "register" ...
>     "rm" ...
>     "rmf" ...
>     "set" ...
>     "illustrate" ...
>     "scriptDone" ...
>     "" ...
>     <EOL> ...
>     ";" ...
>     
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.generateParseException(PigScriptParser.java:688)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:515)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:356)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:84)
>         at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:64)
>         at org.apache.pig.Main.main(Main.java:306)
> =====================================================================================================================
> But the error seems to disappear if a few lines are moved around the "foreach" and "as" keywords. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.