Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6458

NPE when error while applying rule ReduceExpressionsRule_Project

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • None
    • 1.16.0
    • None
    • None

    Description

      Query: select 1 +( -( 21.0)) from (values(1))

       

       

      SYSTEM ERROR: NullPointerException
      
      
      
        (org.apache.drill.exec.work.foreman.ForemanException) Unexpected exception during fragment initialization: Internal error: Error while applying rule ReduceExpressionsRule_Project, args [rel#113:LogicalProject.NONE.ANY([]).[](input=rel#112:Subset#0.ENUMERABLE.ANY([]).[],EXPR$0=+($1, -(20.0)))]
          org.apache.drill.exec.work.foreman.Foreman.run():281
          java.util.concurrent.ThreadPoolExecutor.runWorker():1145
          java.util.concurrent.ThreadPoolExecutor$Worker.run():615
          java.lang.Thread.run():745
        Caused By (java.lang.AssertionError) Internal error: Error while applying rule ReduceExpressionsRule_Project, args [rel#113:LogicalProject.NONE.ANY([]).[](input=rel#112:Subset#0.ENUMERABLE.ANY([]).[],EXPR$0=+($1, -(20.0)))]
          org.apache.calcite.util.Util.newInternal():792
          org.apache.calcite.plan.volcano.VolcanoRuleCall.onMatch():251
          org.apache.calcite.plan.volcano.VolcanoPlanner.findBestExp():808
          org.apache.calcite.tools.Programs$RuleSetProgram.run():303
          org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.transform():404
          org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.transform():343
          org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToDrel():240
          org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToDrel():290
          org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.getPlan():168
          org.apache.drill.exec.planner.sql.DrillSqlWorker.getPhysicalPlan():123
          org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan():97
          org.apache.drill.exec.work.foreman.Foreman.runSQL():1008
          org.apache.drill.exec.work.foreman.Foreman.run():264
          java.util.concurrent.ThreadPoolExecutor.runWorker():1145
          java.util.concurrent.ThreadPoolExecutor$Worker.run():615
          java.lang.Thread.run():745
        Caused By (java.lang.NullPointerException) null
          org.apache.drill.exec.planner.logical.DrillOptiq$RexToDrill.visitCall():132
          org.apache.drill.exec.planner.logical.DrillOptiq$RexToDrill.visitCall():80
          org.apache.calcite.rex.RexCall.accept():107
          org.apache.drill.exec.planner.logical.DrillOptiq.toDrill():77
          org.apache.drill.exec.planner.logical.DrillConstExecutor.reduce():124
          org.apache.calcite.rel.rules.ReduceExpressionsRule.reduceExpressions():499
          org.apache.calcite.rel.rules.ReduceExpressionsRule$1.onMatch():241
          org.apache.calcite.plan.volcano.VolcanoRuleCall.onMatch():228
          org.apache.calcite.plan.volcano.VolcanoPlanner.findBestExp():808
          org.apache.calcite.tools.Programs$RuleSetProgram.run():303
          org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.transform():404
          org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.transform():343
          org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToDrel():240
          org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToDrel():290
          org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.getPlan():168
          org.apache.drill.exec.planner.sql.DrillSqlWorker.getPhysicalPlan():123
          org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan():97
          org.apache.drill.exec.work.foreman.Foreman.runSQL():1008
          org.apache.drill.exec.work.foreman.Foreman.run():264
          java.util.concurrent.ThreadPoolExecutor.runWorker():1145
          java.util.concurrent.ThreadPoolExecutor$Worker.run():615
          java.lang.Thread.run():745
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            robertw Rob Wu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: