-
Bug
-
Resolution: Done
-
Critical
-
15.0.1
-
None
-
-
Undefined
When running the following query:
select 1 from "views.v2a" a join "views.v2a" b on a.salesorderid=b.salesorderid ;;
Teiid generates the stacktrace with NPE:
2020-12-23 15:08:44,089 ERROR [org.teiid.PROCESSOR] (Worker0_QueryProcessorQueue18) umCFWbQBUi+j TEIID30019 Unexpected exception for request umCFWbQBUi+j.7: java.lang.NullPointerException at org.jboss.teiid@15.0.1//org.teiid.query.optimizer.relational.rules.RuleMergeVirtual.doMerge(RuleMergeVirtual.java:188) at org.jboss.teiid@15.0.1//org.teiid.query.optimizer.relational.rules.RuleRaiseNull.raiseNullNode(RuleRaiseNull.java:213) at org.jboss.teiid@15.0.1//org.teiid.query.optimizer.relational.rules.RuleRaiseNull.execute(RuleRaiseNull.java:66) at org.jboss.teiid@15.0.1//org.teiid.query.optimizer.relational.RelationalPlanner.executeRules(RelationalPlanner.java:1101) at org.jboss.teiid@15.0.1//org.teiid.query.optimizer.relational.RelationalPlanner.optimize(RelationalPlanner.java:235) at org.jboss.teiid@15.0.1//org.teiid.query.optimizer.QueryOptimizer.optimizePlan(QueryOptimizer.java:181) at org.jboss.teiid@15.0.1//org.teiid.dqp.internal.process.Request.generatePlan(Request.java:488) at org.jboss.teiid@15.0.1//org.teiid.dqp.internal.process.Request.processRequest(Request.java:516) at org.jboss.teiid@15.0.1//org.teiid.dqp.internal.process.RequestWorkItem.processNew(RequestWorkItem.java:671) at org.jboss.teiid@15.0.1//org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:350) at org.jboss.teiid@15.0.1//org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:43) at org.jboss.teiid@15.0.1//org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:284) at org.jboss.teiid@15.0.1//org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:283) at org.jboss.teiid@15.0.1//org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:124) at org.jboss.teiid@15.0.1//org.teiid.dqp.internal.process.ThreadReuseExecutor$2.run(ThreadReuseExecutor.java:212) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)