Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Error without pig script line information


Copy link to this message
-
Re: Error without pig script line information
Please paste the script.

Russell Jurney http://datasyndrome.com

On Dec 24, 2012, at 12:37 AM, Haitao Yao <[EMAIL PROTECTED]> wrote:

> hi, all ,
>    here's an error that has no line numbers attached:
>
> ERROR 1200: org.apache.pig.newplan.logical.expression.ScalarExpression cannot be cast to org.apache.pig.newplan.logical.expression.ProjectExpression
>
> Failed to parse: org.apache.pig.newplan.logical.expression.ScalarExpression cannot be cast to org.apache.pig.newplan.logical.expression.ProjectExpression
>    at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:180)
>    at org.apache.pig.PigServer$Graph.validateQuery(PigServer.java:1609)
>    at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1582)
>    at org.apache.pig.PigServer.registerQuery(PigServer.java:584)
>    at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:942)
>    at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:386)
>    at org.apache.pig.tools.grunt.GruntParser.loadScript(GruntParser.java:516)
>    at org.apache.pig.tools.grunt.GruntParser.processExplain(GruntParser.java:314)
>    at org.apache.pig.tools.grunt.Grunt.checkScript(Grunt.java:98)
>    at org.apache.pig.Main.run(Main.java:434)
>    at org.apache.pig.Main.main(Main.java:112)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>    at java.lang.reflect.Method.invoke(Method.java:601)
>    at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
> Caused by: java.lang.ClassCastException: org.apache.pig.newplan.logical.expression.ScalarExpression cannot be cast to org.apache.pig.newplan.logical.expression.ProjectExpression
>    at org.apache.pig.parser.LogicalPlanGenerator.nested_proj(LogicalPlanGenerator.java:12881)
>    at org.apache.pig.parser.LogicalPlanGenerator.nested_op(LogicalPlanGenerator.java:12640)
>    at org.apache.pig.parser.LogicalPlanGenerator.nested_command(LogicalPlanGenerator.java:12463)
>    at org.apache.pig.parser.LogicalPlanGenerator.nested_blk(LogicalPlanGenerator.java:12182)
>    at org.apache.pig.parser.LogicalPlanGenerator.foreach_plan(LogicalPlanGenerator.java:12090)
>    at org.apache.pig.parser.LogicalPlanGenerator.foreach_clause(LogicalPlanGenerator.java:11915)
>    at org.apache.pig.parser.LogicalPlanGenerator.op_clause(LogicalPlanGenerator.java:1364)
>    at org.apache.pig.parser.LogicalPlanGenerator.general_statement(LogicalPlanGenerator.java:683)
>    at org.apache.pig.parser.LogicalPlanGenerator.statement(LogicalPlanGenerator.java:483)
>    at org.apache.pig.parser.LogicalPlanGenerator.query(LogicalPlanGenerator.java:369)
>    at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:171)
>    ... 15 more
>
>
>
> Can anybody provide any information? Or can anybody attach the script information with this Error?
>
> thank.
>
>
> Haitao Yao
> [EMAIL PROTECTED]
> weibo: @haitao_yao
> Skype:  haitao.yao.final
>