[
https://issues.jboss.org/browse/TEIID-2872?page=com.atlassian.jira.plugin...
]
Steven Hawkins commented on TEIID-2872:
---------------------------------------
Can you provide the query plan that you are seeing with this?
Assertion failed error when joining multiple native queries.
------------------------------------------------------------
Key: TEIID-2872
URL:
https://issues.jboss.org/browse/TEIID-2872
Project: Teiid
Issue Type: Bug
Affects Versions: 8.5
Environment: Windows 2003 server, Windows 7
Reporter: SHI HONG CHIN
Assignee: Steven Hawkins
Attachments: JakkerData-vdb.xml, sql4.sql
If I join multiple native queries, the following error occurred:
11:24:16,553 ERROR [org.teiid.PROCESSOR] (Worker21_QueryProcessorQueue534) ePitQkul9Wn5
TEIID30019 Unexpected exception for request ePitQkul9Wn5.0: java.lang.AssertionError:
ASSERTION FAILED: expected reference to be not null
at org.teiid.core.util.Assertion.failed(Assertion.java:73)
[teiid-common-core-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.core.util.Assertion.isNotNull(Assertion.java:100)
[teiid-common-core-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.core.util.Assertion.isNotNull(Assertion.java:92)
[teiid-common-core-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.common.buffer.TupleBuffer.getBatch(TupleBuffer.java:287)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.query.processor.BatchIterator.finalRow(BatchIterator.java:63)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at
org.teiid.common.buffer.AbstractTupleSource.getCurrentTuple(AbstractTupleSource.java:70)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.query.processor.BatchIterator.getCurrentTuple(BatchIterator.java:84)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.common.buffer.AbstractTupleSource.nextTuple(AbstractTupleSource.java:48)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.query.processor.relational.SortUtility.initialSort(SortUtility.java:257)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.query.processor.relational.SortUtility.sort(SortUtility.java:190)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.query.processor.relational.SourceState.sort(SourceState.java:315)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at
org.teiid.query.processor.relational.MergeJoinStrategy.loadRight(MergeJoinStrategy.java:359)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at
org.teiid.query.processor.relational.EnhancedSortMergeJoinStrategy.loadRight(EnhancedSortMergeJoinStrategy.java:257)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.query.processor.relational.JoinNode.nextBatchDirect(JoinNode.java:208)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at
org.teiid.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:146)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at
org.teiid.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:136)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.query.processor.QueryProcessor.nextBatchDirect(QueryProcessor.java:151)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.query.processor.QueryProcessor.nextBatch(QueryProcessor.java:114)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:155)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:435)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:320)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:51)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:248)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:269)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at
org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:214)
[teiid-engine-8.5.0.Final.jar:8.5.0.Final]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
[rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
[rt.jar:1.6.0_45]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira