[ 
https://issues.apache.org/jira/browse/PIG-1235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olga Natkovich resolved PIG-1235.
---------------------------------

    Resolution: Won't Fix

This is not relevant with new optimizer

> OptimizerException: Problem while rebuilding projection map or schema in 
> logical optimizer
> ------------------------------------------------------------------------------------------
>
>                 Key: PIG-1235
>                 URL: https://issues.apache.org/jira/browse/PIG-1235
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.7.0
>            Reporter: Richard Ding
>
> Here is the script that throws this exception:
> {code}
> A = load '1.txt' as (x, y, z);
> B = group A by (x > 0 ? x : 0);
> C = filter B by group > 10;  
> explain C   
> {code}
> Pig Stack Trace
> ---------------
> ERROR 2157: Error while fixing projections. No mapping available in old 
> predecessor to replace column.
> org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1067: Unable to 
> explain alias C
>         at org.apache.pig.PigServer.explain(PigServer.java:593)
>         at 
> org.apache.pig.tools.grunt.GruntParser.explainCurrentBatch(GruntParser.java:315)
>         at 
> org.apache.pig.tools.grunt.GruntParser.processExplain(GruntParser.java:268)
>         at 
> org.apache.pig.tools.pigscript.parser.PigScriptParser.Explain(PigScriptParser.java:517)
>         at 
> org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:265)
>         at 
> org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:168)
>         at 
> org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:144)
>         at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:75)
>         at org.apache.pig.Main.main(Main.java:352)
> Caused by: org.apache.pig.impl.plan.optimizer.OptimizerException: ERROR 2145: 
> Problem while rebuilding projection map or schema in logical optimizer.
>         at 
> org.apache.pig.impl.logicalLayer.optimizer.LogicalOptimizer.optimize(LogicalOptimizer.java:215)
>         at org.apache.pig.PigServer.compileLp(PigServer.java:856)
>         at org.apache.pig.PigServer.compileLp(PigServer.java:792)
>         at org.apache.pig.PigServer.getStorePlan(PigServer.java:734)
>         at org.apache.pig.PigServer.explain(PigServer.java:576)
>         ... 8 more

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

Reply via email to