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

LogicalPlanner::convertDataType causes NPE in some cases.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.9.0
    • Component/s: Planner/Optimizer
    • Labels:
      None

      Description

      SELECT x, p::interval, to_timestamp(time), to_timestamp(utc / 1000) FROM (SELECT u.x, time - (utc / 1000) as p, time, utc FROM T1 l JOIN T2 u ON l.x = u.x) T WHERE p < 0
      
      2014-10-06 15:17:42,334 ERROR org.apache.tajo.master.GlobalEngine:
      Stack Trace:
      java.lang.NullPointerException
        at org.apache.tajo.engine.planner.LogicalPlanner.convertDataType(LogicalPlanner.java:1836)
        at org.apache.tajo.engine.planner.TypeDeterminant.visitUnaryOperator(TypeDeterminant.java:60)
        at org.apache.tajo.engine.planner.TypeDeterminant.visitUnaryOperator(TypeDeterminant.java:37)
        at org.apache.tajo.engine.planner.SimpleAlgebraVisitor.visit(SimpleAlgebraVisitor.java:34)
        at org.apache.tajo.engine.planner.TypeDeterminant.determineDataType(TypeDeterminant.java:46)
        at org.apache.tajo.engine.planner.LogicalPlanPreprocessor.visitProjection(LogicalPlanPreprocessor.java:208)
        at org.apache.tajo.engine.planner.LogicalPlanPreprocessor.visitProjection(LogicalPlanPreprocessor.java:40)
        at org.apache.tajo.engine.planner.BaseAlgebraVisitor.visit(BaseAlgebraVisitor.java:55)
        at org.apache.tajo.engine.planner.LogicalPlanner.createPlan(LogicalPlanner.java:129)
        at org.apache.tajo.engine.planner.LogicalPlanner.createPlan(LogicalPlanner.java:119)
        at org.apache.tajo.master.GlobalEngine.createLogicalPlan(GlobalEngine.java:497)
      

        Attachments

          Activity

            People

            • Assignee:
              hyunsik Hyunsik Choi
              Reporter:
              hyunsik Hyunsik Choi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: