Rob Wu created DRILL-6458: ----------------------------- Summary: NPE when error while applying rule ReduceExpressionsRule_Project Key: DRILL-6458 URL: https://issues.apache.org/jira/browse/DRILL-6458 Project: Apache Drill Issue Type: Task Reporter: Rob Wu
*Query*: select 1 +( -( 21.0)) from (values(1)) {code:java} 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 {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)