Details
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)