[
https://issues.jboss.org/browse/TEIID-2358?page=com.atlassian.jira.plugin...
]
Rakesh Balguri commented on TEIID-2358:
---------------------------------------
Hi Steve,
I see this problem in Teiid 8.5.
I also tested the problem with the attached test case in Teiid 8.5 and Teiid 8.6 and I am
able to reproduce the issue.
I am re-opening the JIRA issue so that we can fix the problem.
NullPointer in EnhancedSortMergeJoinStrategy
--------------------------------------------
Key: TEIID-2358
URL:
https://issues.jboss.org/browse/TEIID-2358
Project: Teiid
Issue Type: Bug
Affects Versions: 8.1
Reporter: Rakesh Balguri
Assignee: Steven Hawkins
Attachments: EnhancedSortMergeJoinStrategyTestCases_Updated.zip
java.lang.NullPointerException
at
org.teiid.query.processor.relational.EnhancedSortMergeJoinStrategy$SingleTupleSource.get(EnhancedSortMergeJoinStrategy.java:79)
at
org.teiid.query.processor.relational.ListNestedSortComparator.compare(ListNestedSortComparator.java:149)
at
org.teiid.query.processor.relational.ListNestedSortComparator.compare(ListNestedSortComparator.java:59)
at java.util.Collections.indexedBinarySearch(Collections.java:377)
at java.util.Collections.binarySearch(Collections.java:365)
at org.teiid.common.buffer.SPage.search(SPage.java:140)
at org.teiid.common.buffer.STree.find(STree.java:245)
at org.teiid.common.buffer.TupleBrowser.setPage(TupleBrowser.java:144)
at org.teiid.common.buffer.TupleBrowser.nextTuple(TupleBrowser.java:203)
at
org.teiid.query.processor.relational.EnhancedSortMergeJoinStrategy.process(EnhancedSortMergeJoinStrategy.java:377)
at org.teiid.query.processor.relational.JoinNode.nextBatchDirect(JoinNode.java:202)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at org.teiid.query.processor.BatchIterator.finalRow(BatchIterator.java:70)
at
org.teiid.common.buffer.AbstractTupleSource.getCurrentTuple(AbstractTupleSource.java:69)
at org.teiid.query.processor.BatchIterator.getCurrentTuple(BatchIterator.java:82)
at org.teiid.common.buffer.AbstractTupleSource.hasNext(AbstractTupleSource.java:91)
at
org.teiid.query.processor.relational.MergeJoinStrategy.process(MergeJoinStrategy.java:149)
at org.teiid.query.processor.relational.JoinNode.nextBatchDirect(JoinNode.java:202)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at
org.teiid.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:146)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at
org.teiid.query.processor.relational.UnionAllNode.nextBatchDirect(UnionAllNode.java:90)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:153)
at
org.teiid.query.processor.relational.SourceState.getTupleBuffer(SourceState.java:174)
at org.teiid.query.processor.relational.SourceState.getRowCount(SourceState.java:127)
at
org.teiid.query.processor.relational.EnhancedSortMergeJoinStrategy.shouldIndex(EnhancedSortMergeJoinStrategy.java:306)
at
org.teiid.query.processor.relational.EnhancedSortMergeJoinStrategy.loadRight(EnhancedSortMergeJoinStrategy.java:253)
at org.teiid.query.processor.relational.JoinNode.nextBatchDirect(JoinNode.java:198)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at org.teiid.query.processor.BatchIterator.finalRow(BatchIterator.java:70)
at
org.teiid.common.buffer.AbstractTupleSource.getCurrentTuple(AbstractTupleSource.java:69)
at org.teiid.query.processor.BatchIterator.getCurrentTuple(BatchIterator.java:82)
at org.teiid.common.buffer.AbstractTupleSource.hasNext(AbstractTupleSource.java:91)
at
org.teiid.query.processor.relational.MergeJoinStrategy.process(MergeJoinStrategy.java:149)
at org.teiid.query.processor.relational.JoinNode.nextBatchDirect(JoinNode.java:202)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at
org.teiid.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:146)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at
org.teiid.query.processor.relational.UnionAllNode.nextBatchDirect(UnionAllNode.java:90)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at
org.teiid.query.processor.BatchCollector$BatchProducerTupleSource.nextTuple(BatchCollector.java:89)
at org.teiid.query.processor.relational.GroupingNode.groupPhase(GroupingNode.java:374)
at
org.teiid.query.processor.relational.GroupingNode.nextBatchDirect(GroupingNode.java:318)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at
org.teiid.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:146)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:153)
at
org.teiid.query.processor.relational.SourceState.getTupleBuffer(SourceState.java:174)
at
org.teiid.query.processor.relational.EnhancedSortMergeJoinStrategy.loadLeft(EnhancedSortMergeJoinStrategy.java:229)
at org.teiid.query.processor.relational.JoinNode.nextBatchDirect(JoinNode.java:186)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at
org.teiid.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:146)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:279)
at
org.teiid.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:148)
at org.teiid.query.processor.QueryProcessor.nextBatchDirect(QueryProcessor.java:146)
at org.teiid.query.processor.QueryProcessor.nextBatch(QueryProcessor.java:112)
at org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:153)
at org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:382)
at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:291)
... 8 more
--
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