Grokbase Groups Pig dev August 2008
FAQ
spaces load statement results in stack trace
--------------------------------------------

Key: PIG-404
URL: https://issues.apache.org/jira/browse/PIG-404
Project: Pig
Issue Type: Bug
Components: grunt
Affects Versions: types_branch
Environment: Linux 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

Reporter: Araceli Henley
Priority: Trivial
Fix For: types_branch


The first statement works, the second statement results in a stack trace. The only difference is the space beween A= and load.

grunt> A = load 'studenttab10k' using PigStorage() as (name, age, gpa );
grunt> A=load 'studenttab10k' using PigStorage() as ( name, age, gpa );
org.apache.pig.tools.pigscript.parser.ParseException: Encountered "A=load" at line 1, column 1.
Was expecting one of:
<EOF>
"cat" ...
"cd" ...
"cp" ...
"copyFromLocal" ...
"copyToLocal" ...
"dump" ...
"describe" ...
"explain" ...
"help" ...
"kill" ...
"ls" ...
"mv" ...
"mkdir" ...
"pwd" ...
"quit" ...
"register" ...
"rm" ...
"set" ...
"scriptDone" ...
"" ...
<EOL> ...
";" ...

org.apache.pig.tools.pigscript.parser.TokenMgrError: Lexical error at line 1, column 40. Encountered: "(" (40), after : ""
at org.apache.pig.tools.pigscript.parser.PigScriptParserTokenManager.getNextToken(PigScriptParserTokenManager.java:2430)
at org.apache.pig.tools.pigscript.parser.PigScriptParser.getNextToken(PigScriptParser.java:583)
at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:479)
at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:313)
at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:92)
at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:58)
at org.apache.pig.Main.main(Main.java:278)


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

Search Discussions

  • Araceli Henley (JIRA) at Sep 3, 2008 at 7:26 pm
    [ https://issues.apache.org/jira/browse/PIG-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Araceli Henley updated PIG-404:
    -------------------------------

    Description:
    If you have ( A1=pigstatement) and you have (A2= pigstatement), A1will pass and A2 will fail.
    Here is an example using load:

    The first statement works, the second statement results in a stack trace. The only difference is the space beween A= and load.

    grunt> A = load 'studenttab10k' using PigStorage() as (name, age, gpa );
    grunt> A=load 'studenttab10k' using PigStorage() as ( name, age, gpa );
    org.apache.pig.tools.pigscript.parser.ParseException: Encountered "A=load" at line 1, column 1.
    Was expecting one of:
    <EOF>
    "cat" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "explain" ...
    "help" ...
    "kill" ...
    "ls" ...
    "mv" ...
    "mkdir" ...
    "pwd" ...
    "quit" ...
    "register" ...
    "rm" ...
    "set" ...
    "scriptDone" ...
    "" ...
    <EOL> ...
    ";" ...

    org.apache.pig.tools.pigscript.parser.TokenMgrError: Lexical error at line 1, column 40. Encountered: "(" (40), after : ""
    at org.apache.pig.tools.pigscript.parser.PigScriptParserTokenManager.getNextToken(PigScriptParserTokenManager.java:2430)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.getNextToken(PigScriptParser.java:583)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:479)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:313)
    at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:92)
    at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:58)
    at org.apache.pig.Main.main(Main.java:278)


    was:
    The first statement works, the second statement results in a stack trace. The only difference is the space beween A= and load.

    grunt> A = load 'studenttab10k' using PigStorage() as (name, age, gpa );
    grunt> A=load 'studenttab10k' using PigStorage() as ( name, age, gpa );
    org.apache.pig.tools.pigscript.parser.ParseException: Encountered "A=load" at line 1, column 1.
    Was expecting one of:
    <EOF>
    "cat" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "explain" ...
    "help" ...
    "kill" ...
    "ls" ...
    "mv" ...
    "mkdir" ...
    "pwd" ...
    "quit" ...
    "register" ...
    "rm" ...
    "set" ...
    "scriptDone" ...
    "" ...
    <EOL> ...
    ";" ...

    org.apache.pig.tools.pigscript.parser.TokenMgrError: Lexical error at line 1, column 40. Encountered: "(" (40), after : ""
    at org.apache.pig.tools.pigscript.parser.PigScriptParserTokenManager.getNextToken(PigScriptParserTokenManager.java:2430)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.getNextToken(PigScriptParser.java:583)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:479)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:313)
    at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:92)
    at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:58)
    at org.apache.pig.Main.main(Main.java:278)


    Summary: if there is no space after a "=" the pig statement results in stack trace (was: spaces load statement results in stack trace)
    if there is no space after a "=" the pig statement results in stack trace
    -------------------------------------------------------------------------

    Key: PIG-404
    URL: https://issues.apache.org/jira/browse/PIG-404
    Project: Pig
    Issue Type: Bug
    Components: grunt
    Affects Versions: types_branch
    Environment: Linux 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
    Reporter: Araceli Henley
    Priority: Trivial
    Fix For: types_branch


    If you have ( A1=pigstatement) and you have (A2= pigstatement), A1will pass and A2 will fail.
    Here is an example using load:
    The first statement works, the second statement results in a stack trace. The only difference is the space beween A= and load.
    grunt> A = load 'studenttab10k' using PigStorage() as (name, age, gpa );
    grunt> A=load 'studenttab10k' using PigStorage() as ( name, age, gpa );
    org.apache.pig.tools.pigscript.parser.ParseException: Encountered "A=load" at line 1, column 1.
    Was expecting one of:
    <EOF>
    "cat" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "explain" ...
    "help" ...
    "kill" ...
    "ls" ...
    "mv" ...
    "mkdir" ...
    "pwd" ...
    "quit" ...
    "register" ...
    "rm" ...
    "set" ...
    "scriptDone" ...
    "" ...
    <EOL> ...
    ";" ...
    org.apache.pig.tools.pigscript.parser.TokenMgrError: Lexical error at line 1, column 40. Encountered: "(" (40), after : ""
    at org.apache.pig.tools.pigscript.parser.PigScriptParserTokenManager.getNextToken(PigScriptParserTokenManager.java:2430)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.getNextToken(PigScriptParser.java:583)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:479)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:313)
    at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:92)
    at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:58)
    at org.apache.pig.Main.main(Main.java:278)
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Araceli Henley (JIRA) at Sep 3, 2008 at 7:26 pm
    [ https://issues.apache.org/jira/browse/PIG-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Araceli Henley updated PIG-404:
    -------------------------------

    Summary: if there is no space after a "=" as in "A=pigstatement" the pig statement results in stack trace (was: if there is no space after a "=" the pig statement results in stack trace)
    if there is no space after a "=" as in "A=pigstatement" the pig statement results in stack trace
    -------------------------------------------------------------------------------------------------

    Key: PIG-404
    URL: https://issues.apache.org/jira/browse/PIG-404
    Project: Pig
    Issue Type: Bug
    Components: grunt
    Affects Versions: types_branch
    Environment: Linux 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
    Reporter: Araceli Henley
    Priority: Trivial
    Fix For: types_branch


    If you have ( A1=pigstatement) and you have (A2= pigstatement), A1will pass and A2 will fail.
    Here is an example using load:
    The first statement works, the second statement results in a stack trace. The only difference is the space beween A= and load.
    grunt> A = load 'studenttab10k' using PigStorage() as (name, age, gpa );
    grunt> A=load 'studenttab10k' using PigStorage() as ( name, age, gpa );
    org.apache.pig.tools.pigscript.parser.ParseException: Encountered "A=load" at line 1, column 1.
    Was expecting one of:
    <EOF>
    "cat" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "explain" ...
    "help" ...
    "kill" ...
    "ls" ...
    "mv" ...
    "mkdir" ...
    "pwd" ...
    "quit" ...
    "register" ...
    "rm" ...
    "set" ...
    "scriptDone" ...
    "" ...
    <EOL> ...
    ";" ...
    org.apache.pig.tools.pigscript.parser.TokenMgrError: Lexical error at line 1, column 40. Encountered: "(" (40), after : ""
    at org.apache.pig.tools.pigscript.parser.PigScriptParserTokenManager.getNextToken(PigScriptParserTokenManager.java:2430)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.getNextToken(PigScriptParser.java:583)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:479)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:313)
    at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:92)
    at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:58)
    at org.apache.pig.Main.main(Main.java:278)
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Olga Natkovich (JIRA) at Sep 4, 2008 at 12:36 am
    [ https://issues.apache.org/jira/browse/PIG-404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich resolved PIG-404.
    --------------------------------

    Resolution: Duplicate

    This is duplicate of https://issues.apache.org/jira/browse/PIG-19
    if there is no space after a "=" as in "A=pigstatement" the pig statement results in stack trace
    -------------------------------------------------------------------------------------------------

    Key: PIG-404
    URL: https://issues.apache.org/jira/browse/PIG-404
    Project: Pig
    Issue Type: Bug
    Components: grunt
    Affects Versions: types_branch
    Environment: Linux 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
    Reporter: Araceli Henley
    Priority: Trivial
    Fix For: types_branch


    If you have ( A1=pigstatement) and you have (A2= pigstatement), A1will pass and A2 will fail.
    Here is an example using load:
    The first statement works, the second statement results in a stack trace. The only difference is the space beween A= and load.
    grunt> A = load 'studenttab10k' using PigStorage() as (name, age, gpa );
    grunt> A=load 'studenttab10k' using PigStorage() as ( name, age, gpa );
    org.apache.pig.tools.pigscript.parser.ParseException: Encountered "A=load" at line 1, column 1.
    Was expecting one of:
    <EOF>
    "cat" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "explain" ...
    "help" ...
    "kill" ...
    "ls" ...
    "mv" ...
    "mkdir" ...
    "pwd" ...
    "quit" ...
    "register" ...
    "rm" ...
    "set" ...
    "scriptDone" ...
    "" ...
    <EOL> ...
    ";" ...
    org.apache.pig.tools.pigscript.parser.TokenMgrError: Lexical error at line 1, column 40. Encountered: "(" (40), after : ""
    at org.apache.pig.tools.pigscript.parser.PigScriptParserTokenManager.getNextToken(PigScriptParserTokenManager.java:2430)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.getNextToken(PigScriptParser.java:583)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.handle_invalid_command(PigScriptParser.java:479)
    at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:313)
    at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:92)
    at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:58)
    at org.apache.pig.Main.main(Main.java:278)
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedAug 28, '08 at 10:06p
activeSep 4, '08 at 12:36a
posts4
users1
websitepig.apache.org

1 user in discussion

Olga Natkovich (JIRA): 4 posts

People

Translate

site design / logo © 2021 Grokbase