You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by Daniel Dai <da...@gmail.com> on 2010/12/03 19:49:40 UTC

Review Request: New logical plan: PushDownForEachFlatten fail in UDF with unknown output schema

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/144/
-----------------------------------------------------------

Review request for pig and xuefu.


Summary
-------

The following script fail:

a = load '1.txt' as (a0:chararray);
b = load '2.txt' as (b0:chararray);
c = foreach b generate flatten(STRSPLIT(b0)) as c0;
d = join c by c0, a by a0;
dump d;

Error message:
Caused by: java.lang.NullPointerException
at org.apache.pig.newplan.logical.rules.PushDownForEachFlatten$PushDownForEachFlattenTransformer.getNonFlattenFieldUids(PushDownForEachFlatten.java:186)
at org.apache.pig.newplan.logical.rules.PushDownForEachFlatten$PushDownForEachFlattenTransformer.check(PushDownForEachFlatten.java:101)
at org.apache.pig.newplan.optimizer.PlanOptimizer.optimize(PlanOptimizer.java:108)
... 13 more


This addresses bug PIG-1751.
    https://issues.apache.org/jira/browse/PIG-1751


Diffs
-----

  http://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/newplan/logical/rules/PushDownForEachFlatten.java 1041537 
  http://svn.apache.org/repos/asf/pig/trunk/test/org/apache/pig/test/TestNewPlanPushDownForeachFlatten.java 1041537 

Diff: https://reviews.apache.org/r/144/diff


Testing
-------


Thanks,

Daniel