-
Bug
-
Resolution: Done
-
Major
-
14.0
-
None
-
-
Undefined
Teiid throws the following NPE:
2020-11-06 15:57:17,903 ERROR [org.teiid.PROCESSOR] (Worker2_QueryProcessorQueue20) AroM4jm+JTFz TEIID30019 Unexpected exception for request AroM4jm+JTFz.4: java.lang.NullPointerException at org.teiid.query.sql.navigator.PreOrderNavigator.doVisit(PreOrderNavigator.java:36) at org.teiid.query.sql.visitor.ValueIteratorProviderCollectorVisitor.getValueIteratorProviders(ValueIteratorProviderCollectorVisitor.java:149) at org.teiid.query.optimizer.relational.plantree.PlanNode.getSubqueryContainers(PlanNode.java:428) at org.teiid.query.optimizer.relational.plantree.PlanNode.getCorrelatedReferences(PlanNode.java:327) at org.teiid.query.optimizer.relational.plantree.PlanNode.getCorrelatedReferenceElements(PlanNode.java:373) at org.teiid.query.optimizer.relational.RelationalPlanner.createSelectNode(RelationalPlanner.java:1906) at org.teiid.query.optimizer.relational.rules.RuleChooseDependent.createDependentSetNode(RuleChooseDependent.java:675) at org.teiid.query.optimizer.relational.rules.RulePushSelectCriteria.moveCriteriaIntoOnClause(RulePushSelectCriteria.java:327) at org.teiid.query.optimizer.relational.rules.RulePushSelectCriteria.handleJoinCriteria(RulePushSelectCriteria.java:268) at org.teiid.query.optimizer.relational.rules.RulePushSelectCriteria.execute(RulePushSelectCriteria.java:137) at org.teiid.query.optimizer.relational.RelationalPlanner.executeRules(RelationalPlanner.java:1101) at org.teiid.query.optimizer.relational.RelationalPlanner.optimize(RelationalPlanner.java:235) at org.teiid.query.optimizer.QueryOptimizer.optimizePlan(QueryOptimizer.java:181) at org.teiid.dqp.internal.process.Request.generatePlan(Request.java:483) at org.teiid.dqp.internal.process.Request.processRequest(Request.java:511) at org.teiid.dqp.internal.process.RequestWorkItem.processNew(RequestWorkItem.java:671) at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:350) at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:43) at org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:284) at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:281) at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:124) at org.teiid.dqp.internal.process.ThreadReuseExecutor$2.run(ThreadReuseExecutor.java:212) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
on the planning of a particular kind of query (see workflow to reproduce).