Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-881

JOIN with union query occurs NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      None

      Description

      The following query occurs NPE.

      select a.id, b.c_name from ( 
        select l_partkey as id from lineitem 
        union all 
        select o_orderkey as id from orders 
      ) a 
      join customer b on a.id = b.c_custkey
      
      2014-06-18 16:33:54,592 ERROR: org.apache.tajo.master.querymaster.QueryMasterTask (startQuery(364)) - 
      java.lang.NullPointerException
      	at org.apache.tajo.engine.planner.global.DataChannel.<init>(DataChannel.java:55)
      	at org.apache.tajo.engine.planner.global.GlobalPlanner.createDataChannelFromJoin(GlobalPlanner.java:178)
      	at org.apache.tajo.engine.planner.global.GlobalPlanner.buildJoinPlan(GlobalPlanner.java:315)
      	at org.apache.tajo.engine.planner.global.GlobalPlanner.access$300(GlobalPlanner.java:54)
      	at org.apache.tajo.engine.planner.global.GlobalPlanner$DistributedPlannerVisitor.visitJoin(GlobalPlanner.java:1106)
      	at org.apache.tajo.engine.planner.global.GlobalPlanner$DistributedPlannerVisitor.visitJoin(GlobalPlanner.java:967)
      	at org.apache.tajo.engine.planner.BasicLogicalPlanVisitor.visit(BasicLogicalPlanVisitor.java:84)
      	at org.apache.tajo.engine.planner.BasicLogicalPlanVisitor.visitRoot(BasicLogicalPlanVisitor.java:142)
      	at org.apache.tajo.engine.planner.global.GlobalPlanner$DistributedPlannerVisitor.visitRoot(GlobalPlanner.java:972)
      	at org.apache.tajo.engine.planner.global.GlobalPlanner$DistributedPlannerVisitor.visitRoot(GlobalPlanner.java:967)
      	at org.apache.tajo.engine.planner.BasicLogicalPlanVisitor.visit(BasicLogicalPlanVisitor.java:58)
      	at org.apache.tajo.engine.planner.global.GlobalPlanner.build(GlobalPlanner.java:134)
      	at org.apache.tajo.master.querymaster.QueryMasterTask.startQuery(QueryMasterTask.java:356)
      	at org.apache.tajo.master.querymaster.QueryMasterTask.start(QueryMasterTask.java:176)
      	at org.apache.tajo.master.querymaster.QueryMaster$QueryStartEventHandler.handle(QueryMaster.java:380)
      	at org.apache.tajo.master.querymaster.QueryMaster$QueryStartEventHandler.handle(QueryMaster.java:371)
      	at org.apache.tajo.master.TajoAsyncDispatcher.dispatch(TajoAsyncDispatcher.java:137)
      	at org.apache.tajo.master.TajoAsyncDispatcher$1.run(TajoAsyncDispatcher.java:79)
      	at java.lang.Thread.run(Thread.java:744)
      
      

        Attachments

          Activity

            People

            • Assignee:
              hjkim Hyoungjun Kim
              Reporter:
              hjkim Hyoungjun Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: