Pig
  1. Pig
  2. PIG-1073

LogicalPlanCloner can't clone plan containing LOJoin

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: impl
    • Labels:
      None
    • Tags:
      logical layer

      Description

      Add following testcase in LogicalPlanBuilder.java

      public void testLogicalPlanCloner() throws CloneNotSupportedException

      { LogicalPlan lp = buildPlan("C = join ( load 'A') by $0, (load 'B') by $0;"); LogicalPlanCloner cloner = new LogicalPlanCloner(lp); cloner.getClonedPlan(); }

      and this fails with the following stacktrace:

      java.lang.NullPointerException
      at org.apache.pig.impl.logicalLayer.LOVisitor.visit(LOVisitor.java:171)
      at org.apache.pig.impl.logicalLayer.PlanSetter.visit(PlanSetter.java:63)
      at org.apache.pig.impl.logicalLayer.LOJoin.visit(LOJoin.java:213)
      at org.apache.pig.impl.logicalLayer.LOJoin.visit(LOJoin.java:45)
      at org.apache.pig.impl.plan.DepthFirstWalker.depthFirst(DepthFirstWalker.java:67)
      at org.apache.pig.impl.plan.DepthFirstWalker.depthFirst(DepthFirstWalker.java:69)
      at org.apache.pig.impl.plan.DepthFirstWalker.walk(DepthFirstWalker.java:50)
      at org.apache.pig.impl.plan.PlanVisitor.visit(PlanVisitor.java:51)
      at org.apache.pig.impl.logicalLayer.LogicalPlanCloneHelper.getClonedPlan(LogicalPlanCloneHelper.java:73)
      at org.apache.pig.impl.logicalLayer.LogicalPlanCloner.getClonedPlan(LogicalPlanCloner.java:46)
      at org.apache.pig.test.TestLogicalPlanBuilder.testLogicalPlanCloneHelper(TestLogicalPlanBuilder.java:2110)

      1. pig-1073-1.patch
        29 kB
        Ashutosh Chauhan

        Activity

        Ashutosh Chauhan created issue -
        Ashutosh Chauhan made changes -
        Field Original Value New Value
        Attachment pig-1073.patch [ 12424184 ]
        Ashutosh Chauhan made changes -
        Assignee Ashutosh Chauhan [ ashutoshc ]
        Ashutosh Chauhan made changes -
        Attachment pig-1073.patch [ 12424184 ]
        Ashutosh Chauhan made changes -
        Attachment pig-1073-1.patch [ 12424443 ]

          People

          • Assignee:
            Ashutosh Chauhan
            Reporter:
            Ashutosh Chauhan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development